11 #if ! defined(__COMMANDS_H__) 12 #define __COMMANDS_H__ 18 #define BRP_ERR_AR_NOMESSAGE BRP_ERR_STATUS(0x0500, 0x01) 19 #define BRP_ERR_AR_DISABLED BRP_ERR_STATUS(0x0500, 0x10) 25 #define BRP_CMD_SYS_GETINFO_FWS_LEN 41 BRP_LIB brp_errcode brp_exec_AR_GetMessage(brp_protocol protocol, int *msg_type, char *msg, size_t max_msg_len, size_t *msg_len)
Returns the last message read by device.
Implements the core BRP protocol.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
BRP_LIB brp_errcode brp_exec_Sys_CfgSetValue(brp_protocol protocol, int key, int value, brp_buf data, size_t data_len)
Modifies the devices (permanent) configuration.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
BRP_LIB brp_errcode brp_exec_Sys_CfgGetValue(brp_protocol protocol, int key, int value, brp_buf data, size_t max_data_len, size_t *data_len)
Retrieves a configuration value from the device.
BRP_LIB brp_errcode brp_exec_Sys_GetInfo(brp_protocol protocol, char *fws)
Retrieves the firmware string.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.