10 #ifndef __BRP_BALTECH_SDK_CMDS_TTF_H__ 11 #define __BRP_BALTECH_SDK_CMDS_TTF_H__ 12 #include "../typedefs.h" 13 #ifdef BALTECH_SDK_INTERNAL 17 #define BRP_TTF_ErrTtfNoTag BRP_ERR_STATUS(0x3400, 0x01) 18 #endif // BALTECH_SDK_INTERNAL 19 #ifdef BALTECH_SDK_INTERNAL 23 #define BRP_TTF_ErrTtfRxdata BRP_ERR_STATUS(0x3400, 0x03) 24 #endif // BALTECH_SDK_INTERNAL 25 #ifdef BALTECH_SDK_INTERNAL 29 #define BRP_TTF_ErrTtfParam BRP_ERR_STATUS(0x3400, 0x07) 30 #endif // BALTECH_SDK_INTERNAL 31 #ifdef BALTECH_SDK_INTERNAL 35 #define BRP_TTF_ErrTtfOvTo BRP_ERR_STATUS(0x3400, 0x08) 36 #endif // BALTECH_SDK_INTERNAL 37 #ifdef BALTECH_SDK_INTERNAL 41 #define BRP_TTF_ErrTtfHfreqctrl BRP_ERR_STATUS(0x3400, 0x09) 42 #endif // BALTECH_SDK_INTERNAL 43 #ifdef BALTECH_SDK_INTERNAL 47 #define BRP_TTF_ErrTtfHw BRP_ERR_STATUS(0x3400, 0x0A) 48 #endif // BALTECH_SDK_INTERNAL 49 #ifdef BALTECH_SDK_INTERNAL 53 #define BRP_TTF_ErrTtfHwNotSupported BRP_ERR_STATUS(0x3400, 0x0C) 54 #endif // BALTECH_SDK_INTERNAL 55 #ifdef BALTECH_SDK_INTERNAL 59 unsigned SamplingTime;
61 brp_TTF_ReadByteStream_RxMod RxMod;
65 } brp_TTF_ReadByteStream_t;
79 #ifdef BRP_SUPPORT_LEGACY_METHODS 80 brp_errcode brp_TTF_ReadByteStream(
brp_protocol protocol,
bool ResetDataPtr,
unsigned SamplingTime,
unsigned Rxlen, brp_TTF_ReadByteStream_RxMod RxMod,
brp_buf* Data,
size_t* Data_len,
brp_mempool *mempool);
82 brp_errcode brp_TTF_ReadByteStream(brp_TTF_ReadByteStream_t params);
84 #endif // BALTECH_SDK_INTERNAL unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.