10 #ifndef __BRP_BALTECH_API_CMDS_BAT_H__    11 #define __BRP_BALTECH_API_CMDS_BAT_H__    12 #include "../typedefs.h"    16 #define BRP_Bat_ErrSkipped BRP_ERR_STATUS(0x4600, 0x90) 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. 
 
brp_errcode brp_Bat_Run(brp_protocol protocol, brp_Bat_Run_SubCmds_Entry *SubCmds, size_t SubCmds_len, brp_Bat_Run_Rsps_Entry **Rsps, size_t *Rsps_len, brp_mempool *mempool)
Run a batch of BRP commands Via condition bits, it is possible to run sub- commands selectively...
 
struct brp_mempool_object_t * brp_mempool
mempool handle. 
 
brp_errcode brp_Bat_CheckStatus(brp_protocol protocol, unsigned CondBitNdx, unsigned *StatusCodes, size_t StatusCodes_len, bool Invert)
This command checks the status of the last action-sub-command (i.e. 
 
brp_errcode brp_Bat_CheckTemplate(brp_protocol protocol, unsigned CondBitNdx, brp_buf Template, size_t Template_len, unsigned *FieldBitLens, size_t FieldBitLens_len, bool Invert)
This command checks if the result of the last action-sub-command (i.e. 
 
brp_errcode brp_Bat_CheckAny(brp_protocol protocol, unsigned CondBitNdx, unsigned CondBits, bool Invert)
This command checks if one or more of a list of condition bits is set. 
 
brp_errcode brp_Bat_Delay(brp_protocol protocol, unsigned DelayTime)
Delays execution for a specified amount of ms. 
 
unsigned char * brp_buf
represents a pointer to a protocol data buffer.