10 #ifndef __BRP_BALTECH_SDK_CMDS_I2C_H__ 11 #define __BRP_BALTECH_SDK_CMDS_I2C_H__ 12 #include "../typedefs.h" 13 #ifdef BALTECH_SDK_INTERNAL 17 #define BRP_I2c_ErrI2CRead BRP_ERR_STATUS(0x0800, 0x01) 18 #endif // BALTECH_SDK_INTERNAL 19 #ifdef BALTECH_SDK_INTERNAL 23 #define BRP_I2c_ErrI2CWrite BRP_ERR_STATUS(0x0800, 0x02) 24 #endif // BALTECH_SDK_INTERNAL 25 #ifdef BALTECH_SDK_INTERNAL 37 #ifdef BRP_SUPPORT_LEGACY_METHODS 40 brp_errcode brp_I2c_SetSpeed(brp_I2c_SetSpeed_t params);
42 #endif // BALTECH_SDK_INTERNAL 43 #ifdef BALTECH_SDK_INTERNAL 63 #ifdef BRP_SUPPORT_LEGACY_METHODS 68 #endif // BALTECH_SDK_INTERNAL 69 #ifdef BALTECH_SDK_INTERNAL 85 #ifdef BRP_SUPPORT_LEGACY_METHODS 90 #endif // BALTECH_SDK_INTERNAL 91 #ifdef BALTECH_SDK_INTERNAL 115 #ifdef BRP_SUPPORT_LEGACY_METHODS 120 #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.