11 #ifndef __BRP_BALTECH_API_CMDS_EM_H__ 12 #define __BRP_BALTECH_API_CMDS_EM_H__ 13 #include "../typedefs.h" 18 #define BRP_EM_ErrEmNoTag BRP_ERR_STATUS(0x3100, 0x01) 23 #define BRP_EM_ErrEmRxdata BRP_ERR_STATUS(0x3100, 0x03) 28 #define BRP_EM_ErrEmChecksum BRP_ERR_STATUS(0x3100, 0x04) 33 #define BRP_EM_ErrEmParity BRP_ERR_STATUS(0x3100, 0x05) 38 #define BRP_EM_EmCmdError BRP_ERR_STATUS(0x3100, 0x06) 43 #define BRP_EM_EmTagtypeNotDetected BRP_ERR_STATUS(0x3100, 0x07) 48 #define BRP_EM_ErrEmOvTo BRP_ERR_STATUS(0x3100, 0x08) 53 #define BRP_EM_EmParamError BRP_ERR_STATUS(0x3100, 0x09) 58 #define BRP_EM_ErrEmHfreqctrl BRP_ERR_STATUS(0x3100, 0x0A) 63 #define BRP_EM_ErrEmHw BRP_ERR_STATUS(0x3100, 0x0B) 68 #define BRP_EM_ErrEmHwNotSupported BRP_ERR_STATUS(0x3100, 0x0D) brp_errcode brp_EM_Read4205(brp_protocol protocol, unsigned Address, unsigned *Page)
brp_errcode brp_EM_Login4469(brp_protocol protocol, unsigned Password)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
brp_errcode brp_EM_Read4100(brp_protocol protocol, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
brp_errcode brp_EM_Halt4205(brp_protocol protocol)
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_EM_Login4205(brp_protocol protocol, unsigned Password)
brp_errcode brp_EM_Read4469(brp_protocol protocol, unsigned Address, unsigned *Page)
brp_errcode brp_EM_Read4450(brp_protocol protocol, unsigned StartAdr, unsigned EndAdr, unsigned **PageNr, size_t *PageNr_len, brp_mempool *mempool)
brp_errcode brp_EM_Write4205(brp_protocol protocol, unsigned Address, unsigned Page)
brp_errcode brp_EM_Write4469(brp_protocol protocol, unsigned Address, unsigned Page)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
brp_errcode brp_EM_DecodeCfg(brp_protocol protocol, brp_EM_DecodeCfg_RxMod RxMod, unsigned RxBaud)
brp_errcode brp_EM_Halt4469(brp_protocol protocol)
brp_errcode brp_EM_Protect4205(brp_protocol protocol, unsigned ProtectMask)