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 CmdCode, brp_buf CmdParams, size_t CmdParams_len, unsigned 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 #endif // BALTECH_SDK_INTERNAL
87 #ifdef BALTECH_SDK_INTERNAL
88 typedef struct {
89  brp_protocol protocol;
90  unsigned CmdCode;
91  brp_buf CmdParams;
92  size_t CmdParams_len;
93  unsigned Timeout;
94  unsigned* Status;
95  brp_buf* Resp;
96  size_t* Resp_len;
97  brp_mempool *mempool;
98 } brp_Legic_TransparentCommand6000_t;
129 #ifdef BRP_SUPPORT_LEGACY_METHODS
130 brp_errcode brp_Legic_TransparentCommand6000(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);
131 #else
132 brp_errcode brp_Legic_TransparentCommand6000(brp_Legic_TransparentCommand6000_t params);
133 #endif
134 #endif // BALTECH_SDK_INTERNAL
135 #endif
136 
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