C API for BALTECH SDK
bat.h
Go to the documentation of this file.
1 
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)
17 
30 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);
42 brp_errcode brp_Bat_CheckStatus(brp_protocol protocol, unsigned CondBitNdx, unsigned* StatusCodes, size_t StatusCodes_len, bool Invert);
51 brp_errcode brp_Bat_CheckAny(brp_protocol protocol, unsigned CondBitNdx, unsigned CondBits, bool Invert);
65 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);
74 brp_errcode brp_Bat_Delay(brp_protocol protocol, unsigned DelayTime);
75 #endif
76 
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
Definition: typedefs.h:582
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.
Definition: mempool.h:27
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.
Definition: typedefs.h:607
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.
Definition: common.h:61