ACI_Buffer_Params

Top  Previous  Next

 

typedef struct tagACI_Buffer_Params

{

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

 DWORD  Layer0SizeLow;    // (in/out) Low 32 bits of layer 0 size, in bytes

 DWORD  Layer0SizeHigh;   // (in/out) High 32 bits of layer 0 size, in bytes

                          //       Layer size is rounded up to a nearest value supported by programmer.

 LPCSTR BufferName;       // (in)  Buffer name

 UINT   BufferNumber;     // For ACI_CreateBuffer(): out: Created buffer number

                          // For ACI_ReallocBuffer(): in: Buffer number to realloc

 UINT   NumBuffers;       // (out) Total number of currently allocated buffers

 UINT   NumLayers;        // (out) Total number of layers in a buffer

} ACI_Buffer_Params;

 

 

Layer0SizeLow,

Layer0SizeHigh

This structure member represents buffer layer #0's size in Bytes. This size lies in the range between 128K Bytes and 32G Bytes (may be changed in the future). The ChipProgUSB allows assigning buffers with fixed sizes only (see the list on the picture below). Any intermediate value will be automatically rounded up to one of the reserved buffer sizes. For example, if you enter '160000' the programmer will assign a 1MB buffer layer.

BufferName

Since it is used with the ACI_CreateBuffer function this structure member represents the name of the buffer that will be created. If used with the ACI_ReallocBuffer function will be ignored.

BufferNumber

After calling the ACI_CreateBuffer function this structure member returns the created buffer's number. After  calling the ACI_ReallocBuffer function - the number of the buffer, size of which should be changed (re-allocate).

NumBuffers

This structure member represents the current number of memory buffers being opened.

NumLayers

This structure member represents the number of layers in memory buffers. This value is the same for all opened buffers.

 

 

Buffer Size

 

See also: ACI_CreateBuffer, ACI_ReallocBuffer