
128
ChipProg Device Programmers
flag in the option setting dialog. The option is in the Value.
CheckBoxesValue. See, for example, the Fuse setting
dialog for the ATtiny45 MCU implemented as an array of .
ACI_PO_LIST
ACI_PO_BITSTREAM
It represents a list of alternative choices - only one of them
can be selected at a time, so the parameter changes its
value in a range 0, 1, 2 to N. The option is in the Value.
CheckStateIndex. See, for example, the Oscillators setting
dialog for the PIC12F509 MCU implemented as an
alternatively chosen radio buttons
Stream of bits. This option type is not in use yet but can be
used for future applications.
VSize
Size of the buffer assigned for storing the string if the option type is the
ACI_PO_STRING. See the note below .
ACI_PP_xxx ** constants in the aciprog.h<) header file:
Use of the param eter Value
ACI_PP_MODE_VALUE
ACI_PP_MODE_DEFAULT
_VALUE
1) For measuring (getting): use the in order to get an
actual Option value;
2) For setting: use the Value to set a particular Option
value.
1) Being used w ith the ACI_GetProgOption function it
commands to put the default Option value into the Value
2) Being used w ith the ACI_SetProgOption function the
Value w ill be ignored; the Option w ill be set to the default
level defined in the ChipProg hardw are.
Mode
ACI_PP_MODE_MIN_VAL
UE
1) Being used w ith the ACI_GetProgOption function it
commands to put the minimal Option value into the Value .
2) Being used w ith the ACI_SetProgOption function the w ill
be ignored; the Option w ill be set to the minimal level
defined in the ChipProg hardw are, if it is possible for the
Option of this type.
ACI_PP_MODE_MAX_VAL 1) Being used w ith the ACI_GetProgOption function it
UE
commands to put the maximal Option value into the Value .
2) If it is used w ith the ACI_SetProgOption function the
Value w ill be ignored; the Option w ill be set to the maximal
level defined in the ChipProg hardw are, if it is possible for
the Option of this type.
This is the bit definition from the aciprog.h header file:
#define ACI_PO_LONG
#define ACI_PO_FLOAT
#define ACI_PO_STRING
#define ACI_PO_CHECKBOXES
#define ACI_PO_LIST
#define ACI_PO_BITSTREAM
0
1
2
3
4
5
//
//
//
//
//
//
Signed integer option
Floating point option
String option
32-bit array of bits
List (radiobuttons)
Bit stream - variable size bit array
**// ACI Programming Option Mode constants for ACI_GetProgOption()/ACI_SetProgOption()
#define ACI_PP_MODE_VALUE
ACI_ProgOption_Params structure
#define ACI_PP_MODE_DEFAULT_VALUE
0 // Get/set value specified in Value member of the
1 // Get/set default option value, ignore Value member
2 // Get/set minimal option value, ignore Value member
? 2010 Phyton, Inc. Microsystems and Development Tools