11 #ifndef __BRP_BALTECH_API_CMDS_LT_H__ 12 #define __BRP_BALTECH_API_CMDS_LT_H__ 13 #include "../typedefs.h" 18 #define BRP_LT_ErrLtNoTag BRP_ERR_STATUS(0xA000, 0x01) 23 #define BRP_LT_ErrLtCrc BRP_ERR_STATUS(0xA000, 0x02) 28 #define BRP_LT_ErrLtParity BRP_ERR_STATUS(0xA000, 0x05) 33 #define BRP_LT_LtNackReceived BRP_ERR_STATUS(0xA000, 0x06) 38 #define BRP_LT_ErrLtHf BRP_ERR_STATUS(0xA000, 0x07) 43 #define BRP_LT_ErrLtSnr BRP_ERR_STATUS(0xA000, 0x08) 48 #define BRP_LT_ErrLtBitcount BRP_ERR_STATUS(0xA000, 0x0B) 53 #define BRP_LT_ErrLtFileov BRP_ERR_STATUS(0xA000, 0x0C) 58 #define BRP_LT_ErrLtCom BRP_ERR_STATUS(0xA000, 0x0D) 63 #define BRP_LT_ErrLtCmd BRP_ERR_STATUS(0xA000, 0x13) 68 #define BRP_LT_ErrLtEepRead BRP_ERR_STATUS(0xA000, 0x15) 73 #define BRP_LT_ErrLtEepWrite BRP_ERR_STATUS(0xA000, 0x16) 326 brp_errcode brp_LT_TransparentCmd(
brp_protocol protocol,
unsigned EnBitMode,
unsigned EnCRCRX,
unsigned EnCRCTX,
unsigned ParityMode,
unsigned EnParity,
unsigned LenLo,
unsigned LenHi,
unsigned TimeoutLo,
unsigned TimeoutHi,
unsigned DSI,
unsigned DRI,
brp_buf Data,
size_t Data_len,
unsigned* ReturnLenLo,
unsigned* ReturnLenHi,
unsigned* ColPos,
brp_buf* ReturnData,
size_t* ReturnData_len,
brp_mempool *mempool);
brp_errcode brp_LT_Halt(brp_protocol protocol)
brp_errcode brp_LT_ReadMultipleBlocksExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
brp_errcode brp_LT_ReadBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf *Data, brp_mempool *mempool)
brp_errcode brp_LT_ContinousReadBlocks(brp_protocol protocol, unsigned Adr, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
brp_errcode brp_LT_ContinousReadBlocksExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
brp_errcode brp_LT_FastWriteWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
brp_errcode brp_LT_ReadWordExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned WordAdr, unsigned *DataLo, unsigned *DataHi)
brp_errcode brp_LT_FastWriteWordExtended(brp_protocol protocol, unsigned BlockAdrLo, unsigned BlockAdrHi, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
brp_errcode brp_LT_HighSpeedWriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data)
brp_errcode brp_LT_Reset(brp_protocol protocol, unsigned Quit)
brp_errcode brp_LT_TransparentCmd(brp_protocol protocol, unsigned EnBitMode, unsigned EnCRCRX, unsigned EnCRCTX, unsigned ParityMode, unsigned EnParity, unsigned LenLo, unsigned LenHi, unsigned TimeoutLo, unsigned TimeoutHi, unsigned DSI, unsigned DRI, brp_buf Data, size_t Data_len, unsigned *ReturnLenLo, unsigned *ReturnLenHi, unsigned *ColPos, brp_buf *ReturnData, size_t *ReturnData_len, brp_mempool *mempool)
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
brp_errcode brp_LT_SetReturnLink(brp_protocol protocol, unsigned Mode)
brp_errcode brp_LT_HFReset(brp_protocol protocol, unsigned OffDurationLo, unsigned OffDurationHi)
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_LT_GetInfo(brp_protocol protocol, char **Info, brp_mempool *mempool)
brp_errcode brp_LT_Anticoll(brp_protocol protocol, unsigned BitCount, brp_buf PreSelectedSnr, brp_buf *SelectedSnr, brp_mempool *mempool)
brp_errcode brp_LT_Request(brp_protocol protocol, bool ReqAll, brp_buf *ATQA, brp_mempool *mempool)
brp_errcode brp_LT_FastWriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data)
brp_errcode brp_LT_HighSpeedWriteBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf Data)
brp_errcode brp_LT_Test(brp_protocol protocol, unsigned Mode, unsigned *Teststatus, brp_buf *Snr, brp_mempool *mempool)
brp_errcode brp_LT_GetBootStatus(brp_protocol protocol, unsigned Mode, unsigned *BootStatusLo, unsigned *BootStatusHi)
brp_errcode brp_LT_ReadMultipleBlocks(brp_protocol protocol, unsigned Adr, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
brp_errcode brp_LT_WriteBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf Data)
brp_errcode brp_LT_Select(brp_protocol protocol, brp_buf Snr)
brp_errcode brp_LT_WriteWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
brp_errcode brp_LT_WriteFile(brp_protocol protocol, unsigned FileNr, unsigned Mode, unsigned BlockAdr, brp_buf Data)
brp_errcode brp_LT_ReadBlock(brp_protocol protocol, unsigned Adr, brp_buf *Data, brp_mempool *mempool)
brp_errcode brp_LT_ReadWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned *DataLo, unsigned *DataHi)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
brp_errcode brp_LT_WriteWordExtended(brp_protocol protocol, unsigned BlockAdrLo, unsigned BlockAdrHi, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
brp_errcode brp_LT_WriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data)