STBLLIB library
UM0516
2.3.6
GetAckValue
ACKS GetAckValue()
Gets the ACK value, returned by the device after each transmitted packet, the ACK value is
set to ST79 as default and updated with the received value after calling the STBL_Init_BL
function.
Table 8. GetAckValue description
Field
Type
Description
Output
ACKS UNDEFINED=0x00, ST75=0x75, ST79=0x79
2.3.7
STBL_DNLOAD
BYTE STBL_DNLOAD(DWORD Address, LPBYTE pData, DWORD Length,BOOL
bTruncateLeadFFForDnLoad)
Issues a Download request to the device.
Table 9. STBL_DNLOAD description
Field
Type
Description
Address
DWORD Address to which the data are to be written.
pData
Input
Length
LPBYTE Pointer to the data buffer.
DWORD Length of the data buffer in bytes.
bTruncateLeadFFForDnLoad BOOL Set to TRUE to ignore FF packets.
Output
BYTE
SUCCESS, Error otherwise (see Error
codes.).
2.3.8
STBL_ERASE
BYTE STBL_ERASE(BYTE NbSectors, LPBYTE pSsectors)
Issues an Erase request to the device, the erase operation is performed on a sector/page
basis.
Table 10. STBL_ERASE description
Field
Type
Description
NbSectors BYTE
Number of sectors/pages to be erased.
Input
pSsectors LPBYTE Pointer to sector code buffer.
Output
BYTE
SUCCESS, Error otherwise (see Error codes.).
10/26
Doc ID 14490 Rev 2
    "