BALTECH SDK wrapper functions reference
lga.h
Go to the documentation of this file.
1 
14 #ifndef __BRP_BALTECH_SDK_CMDS_LGA_H__
15 #define __BRP_BALTECH_SDK_CMDS_LGA_H__
16 #include "../typedefs.h"
17 #ifdef BALTECH_SDK_INTERNAL
18 
21 #define BRP_Lga_ErrNotag BRP_ERR_STATUS(0x1200, 0x01)
22 #endif // BALTECH_SDK_INTERNAL
23 #ifdef BALTECH_SDK_INTERNAL
24 
29 #define BRP_Lga_ErrLegic BRP_ERR_STATUS(0x1200, 0x02)
30 #endif // BALTECH_SDK_INTERNAL
31 #ifdef BALTECH_SDK_INTERNAL
32 
37 #define BRP_Lga_ErrCommunication BRP_ERR_STATUS(0x1200, 0x03)
38 #endif // BALTECH_SDK_INTERNAL
39 #ifdef BALTECH_SDK_INTERNAL
40 
47 #define BRP_Lga_ErrNotInitialized BRP_ERR_STATUS(0x1200, 0x04)
48 #endif // BALTECH_SDK_INTERNAL
49 #ifdef BALTECH_SDK_INTERNAL
50 
55 #define BRP_Lga_ErrNotAssembled BRP_ERR_STATUS(0x1200, 0x05)
56 #endif // BALTECH_SDK_INTERNAL
57 #ifdef BALTECH_SDK_INTERNAL
58 typedef struct {
59  brp_protocol protocol;
60  unsigned CmdCode;
61  brp_buf CmdParams;
62  size_t CmdParams_len;
63  unsigned Timeout;
64  unsigned* Status;
65  brp_buf* Resp;
66  size_t* Resp_len;
67  brp_mempool *mempool;
68 } brp_Lga_TransparentCommand_t;
99 #ifdef BRP_SUPPORT_LEGACY_METHODS
100 brp_errcode brp_Lga_TransparentCommand(brp_protocol protocol, unsigned CmdCode, brp_buf CmdParams, size_t CmdParams_len, unsigned Timeout, unsigned* Status, brp_buf* Resp, size_t* Resp_len, brp_mempool *mempool);
101 #else
102 brp_errcode brp_Lga_TransparentCommand(brp_Lga_TransparentCommand_t params);
103 #endif
104 #endif // BALTECH_SDK_INTERNAL
105 #endif
106 
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
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:29
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61