ACI_Memory_Params

Top  Previous  Next

 

typedef struct tagACI_Memory_Params

{

 UINT   Size;             // (in)  Size of structure, in bytes

 UINT   BufferNumber;     // (in)  Number of buffer of interest, the first buffer number is 0

 UINT   LayerNumber;      // (in)  Number of layer of interest, the first layer number is 0

 DWORD  AddressLow;       // (in)  Low 32 bits of address, in layer units (natural to device address)

 DWORD  AddressHigh;      // (in)  High 32 bits of address, in layer units (natural to device address)

 PVOID  Data;             // (in || out) Buffer to data to read to or write from

 DWORD  DataSize;         // (in)  Size of data to read or write, in layer units, max. 16 MB (0x1000000)

 DWORD  FillValue;        // (in)  Value to fill buffer with, used by ACI_FillLayer() only

} ACI_Memory_Params;

 

BufferNumber

The ordinal number of the buffer to read from or to write into. The buffer numerical order begins from zero.

LayerNumber

The ordinal number of the memory buffer's layer to read from or to write into. The layer numerical order begins from zero.

AddressLow,

AddressHigh

The start address in the memory layer to read from or to write into represented in the units specified by the chosen device manufacturer - Bytes, Words, Double Words. This structure member is ignored in case of use with the ACI_FillLayer function.

Data

Since these are used with different ACI functions this structure member has different meanings.In case of use with the ACI_ReadLayer function it represents the pointer to the data read out from the ChipProg buffer's layer. In case of use with the ACI_WriteLayer - the pointer to the data to be written to the ChipProg buffer's layer. The Data is ignored if it is used with the ACI_FillLayer function.

DataSize

This structure member represents the data format given in memory units specified by the device manufacturer (Bytes, Words or Double Words). The program ignores the DataSize if it is used with the ACI_FillLayer function.

FillValue

This is the data pattern that fills an active ChipProg buffer's layer by means of the ACI_FillLayer function. If, for example, the FillValue is presented in the DWORD format then the 8-bit memory layers will be filled with the lower byte of the FillValue pattern, the 16-bit layers - with the lower 16-bit word and the 32-bit layers - with a whole FillValue pattern.

 

See also: ACI_ReadLayer, ACI_WriteLayer, ACI_FillLayer