BALTECH SDK wrapper functions reference
legic.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_SDK_CMDS_LEGIC_H__
11 #define __BRP_BALTECH_SDK_CMDS_LEGIC_H__
12 #include "../typedefs.h"
13 #ifdef BALTECH_SDK_INTERNAL
14 
19 #define BRP_Legic_ErrCommunication BRP_ERR_STATUS(0x1E00, 0x01)
20 #endif // BALTECH_SDK_INTERNAL
21 #ifdef BALTECH_SDK_INTERNAL
22 
29 #define BRP_Legic_ErrNotInitialized BRP_ERR_STATUS(0x1E00, 0x02)
30 #endif // BALTECH_SDK_INTERNAL
31 #ifdef BALTECH_SDK_INTERNAL
32 
37 #define BRP_Legic_ErrNotAssembled BRP_ERR_STATUS(0x1E00, 0x03)
38 #endif // BALTECH_SDK_INTERNAL
39 #ifdef BALTECH_SDK_INTERNAL
40 typedef struct {
41  brp_protocol protocol;
42  unsigned CmdCode;
43  brp_buf CmdParams;
44  size_t CmdParams_len;
45  unsigned Timeout;
46  unsigned* Status;
47  brp_buf* Resp;
48  size_t* Resp_len;
49  brp_mempool *mempool;
50 } brp_Legic_TransparentCommand4000_t;
81 #ifdef BRP_SUPPORT_LEGACY_METHODS
82 brp_errcode brp_Legic_TransparentCommand4000(brp_protocol protocol, unsigned _input_CmdCode, brp_buf _input_CmdParams, size_t _input_CmdParams_len, unsigned _input_Timeout, unsigned* Status, brp_buf* Resp, size_t* Resp_len, brp_mempool *mempool);
83 #else
84 brp_errcode brp_Legic_TransparentCommand4000(brp_Legic_TransparentCommand4000_t params);
85 #endif
86 typedef struct {
87  brp_protocol protocol;
88  unsigned CmdCode;
89  brp_buf CmdParams;
90  size_t CmdParams_len;
91  unsigned Timeout;
92  unsigned* Status;
93  brp_buf* Resp;
94  size_t* Resp_len;
95  brp_mempool *mempool;
96 } brp_Legic_TransparentCommand6000_t;
127 #ifdef BRP_SUPPORT_LEGACY_METHODS
128 brp_errcode brp_Legic_TransparentCommand6000(brp_protocol protocol, unsigned _input_CmdCode, brp_buf _input_CmdParams, size_t _input_CmdParams_len, unsigned _input_Timeout, unsigned* Status, brp_buf* Resp, size_t* Resp_len, brp_mempool *mempool);
129 #else
130 brp_errcode brp_Legic_TransparentCommand6000(brp_Legic_TransparentCommand6000_t params);
131 #endif
132 #endif // BALTECH_SDK_INTERNAL
133 #endif
134 
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