BALTECH SDK wrapper functions reference
em.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_SDK_CMDS_EM_H__
11 #define __BRP_BALTECH_SDK_CMDS_EM_H__
12 #include "../typedefs.h"
13 #ifdef BALTECH_SDK_INTERNAL
14 
17 #define BRP_EM_ErrEmNoTag BRP_ERR_STATUS(0x3100, 0x01)
18 #endif // BALTECH_SDK_INTERNAL
19 #ifdef BALTECH_SDK_INTERNAL
20 
23 #define BRP_EM_ErrEmRxdata BRP_ERR_STATUS(0x3100, 0x03)
24 #endif // BALTECH_SDK_INTERNAL
25 #ifdef BALTECH_SDK_INTERNAL
26 
29 #define BRP_EM_ErrEmChecksum BRP_ERR_STATUS(0x3100, 0x04)
30 #endif // BALTECH_SDK_INTERNAL
31 #ifdef BALTECH_SDK_INTERNAL
32 
35 #define BRP_EM_ErrEmParity BRP_ERR_STATUS(0x3100, 0x05)
36 #endif // BALTECH_SDK_INTERNAL
37 #ifdef BALTECH_SDK_INTERNAL
38 
41 #define BRP_EM_EmCmdError BRP_ERR_STATUS(0x3100, 0x06)
42 #endif // BALTECH_SDK_INTERNAL
43 #ifdef BALTECH_SDK_INTERNAL
44 
47 #define BRP_EM_EmTagtypeNotDetected BRP_ERR_STATUS(0x3100, 0x07)
48 #endif // BALTECH_SDK_INTERNAL
49 #ifdef BALTECH_SDK_INTERNAL
50 
53 #define BRP_EM_ErrEmOvTo BRP_ERR_STATUS(0x3100, 0x08)
54 #endif // BALTECH_SDK_INTERNAL
55 #ifdef BALTECH_SDK_INTERNAL
56 
59 #define BRP_EM_EmParamError BRP_ERR_STATUS(0x3100, 0x09)
60 #endif // BALTECH_SDK_INTERNAL
61 #ifdef BALTECH_SDK_INTERNAL
62 
65 #define BRP_EM_ErrEmHfreqctrl BRP_ERR_STATUS(0x3100, 0x0A)
66 #endif // BALTECH_SDK_INTERNAL
67 #ifdef BALTECH_SDK_INTERNAL
68 
71 #define BRP_EM_ErrEmHw BRP_ERR_STATUS(0x3100, 0x0B)
72 #endif // BALTECH_SDK_INTERNAL
73 #ifdef BALTECH_SDK_INTERNAL
74 
77 #define BRP_EM_ErrEmHwNotSupported BRP_ERR_STATUS(0x3100, 0x0D)
78 #endif // BALTECH_SDK_INTERNAL
79 #ifdef BALTECH_SDK_INTERNAL
80 typedef struct {
81  brp_protocol protocol;
82  brp_EM_DecodeCfg_RxMod RxMod;
83  unsigned RxBaud;
84 } brp_EM_DecodeCfg_t;
93 #ifdef BRP_SUPPORT_LEGACY_METHODS
94 brp_errcode brp_EM_DecodeCfg(brp_protocol protocol, brp_EM_DecodeCfg_RxMod _input_RxMod, unsigned _input_RxBaud);
95 #else
96 brp_errcode brp_EM_DecodeCfg(brp_EM_DecodeCfg_t params);
97 #endif
98 typedef struct {
99  brp_protocol protocol;
100  brp_buf* Data;
101  size_t* Data_len;
102  brp_mempool *mempool;
103 } brp_EM_Read4100_t;
113 #ifdef BRP_SUPPORT_LEGACY_METHODS
114 brp_errcode brp_EM_Read4100(brp_protocol protocol, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
115 #else
116 brp_errcode brp_EM_Read4100(brp_EM_Read4100_t params);
117 #endif
118 typedef struct {
119  brp_protocol protocol;
120  unsigned Address;
121  unsigned* Page;
122 } brp_EM_Read4205_t;
131 #ifdef BRP_SUPPORT_LEGACY_METHODS
132 brp_errcode brp_EM_Read4205(brp_protocol protocol, unsigned _input_Address, unsigned* Page);
133 #else
134 brp_errcode brp_EM_Read4205(brp_EM_Read4205_t params);
135 #endif
136 typedef struct {
137  brp_protocol protocol;
138  unsigned Address;
139  unsigned Page;
140 } brp_EM_Write4205_t;
149 #ifdef BRP_SUPPORT_LEGACY_METHODS
150 brp_errcode brp_EM_Write4205(brp_protocol protocol, unsigned _input_Address, unsigned _input_Page);
151 #else
152 brp_errcode brp_EM_Write4205(brp_EM_Write4205_t params);
153 #endif
154 typedef struct {
155  brp_protocol protocol;
156 } brp_EM_Halt4205_t;
163 #ifdef BRP_SUPPORT_LEGACY_METHODS
164 brp_errcode brp_EM_Halt4205(brp_protocol protocol);
165 #else
166 brp_errcode brp_EM_Halt4205(brp_EM_Halt4205_t params);
167 #endif
168 typedef struct {
169  brp_protocol protocol;
170  unsigned Password;
171 } brp_EM_Login4205_t;
179 #ifdef BRP_SUPPORT_LEGACY_METHODS
180 brp_errcode brp_EM_Login4205(brp_protocol protocol, unsigned _input_Password);
181 #else
182 brp_errcode brp_EM_Login4205(brp_EM_Login4205_t params);
183 #endif
184 typedef struct {
185  brp_protocol protocol;
186  unsigned ProtectMask;
187 } brp_EM_Protect4205_t;
195 #ifdef BRP_SUPPORT_LEGACY_METHODS
196 brp_errcode brp_EM_Protect4205(brp_protocol protocol, unsigned _input_ProtectMask);
197 #else
198 brp_errcode brp_EM_Protect4205(brp_EM_Protect4205_t params);
199 #endif
200 typedef struct {
201  brp_protocol protocol;
202  unsigned Address;
203  unsigned* Page;
204 } brp_EM_Read4469_t;
213 #ifdef BRP_SUPPORT_LEGACY_METHODS
214 brp_errcode brp_EM_Read4469(brp_protocol protocol, unsigned _input_Address, unsigned* Page);
215 #else
216 brp_errcode brp_EM_Read4469(brp_EM_Read4469_t params);
217 #endif
218 typedef struct {
219  brp_protocol protocol;
220  unsigned Address;
221  unsigned Page;
222 } brp_EM_Write4469_t;
231 #ifdef BRP_SUPPORT_LEGACY_METHODS
232 brp_errcode brp_EM_Write4469(brp_protocol protocol, unsigned _input_Address, unsigned _input_Page);
233 #else
234 brp_errcode brp_EM_Write4469(brp_EM_Write4469_t params);
235 #endif
236 typedef struct {
237  brp_protocol protocol;
238 } brp_EM_Halt4469_t;
245 #ifdef BRP_SUPPORT_LEGACY_METHODS
246 brp_errcode brp_EM_Halt4469(brp_protocol protocol);
247 #else
248 brp_errcode brp_EM_Halt4469(brp_EM_Halt4469_t params);
249 #endif
250 typedef struct {
251  brp_protocol protocol;
252  unsigned Password;
253 } brp_EM_Login4469_t;
261 #ifdef BRP_SUPPORT_LEGACY_METHODS
262 brp_errcode brp_EM_Login4469(brp_protocol protocol, unsigned _input_Password);
263 #else
264 brp_errcode brp_EM_Login4469(brp_EM_Login4469_t params);
265 #endif
266 typedef struct {
267  brp_protocol protocol;
268  unsigned StartAdr;
269  unsigned EndAdr;
270  unsigned** PageNr;
271  size_t* PageNr_len;
272  brp_mempool *mempool;
273 } brp_EM_Read4450_t;
285 #ifdef BRP_SUPPORT_LEGACY_METHODS
286 brp_errcode brp_EM_Read4450(brp_protocol protocol, unsigned _input_StartAdr, unsigned _input_EndAdr, unsigned** PageNr, size_t* PageNr_len, brp_mempool *mempool);
287 #else
288 brp_errcode brp_EM_Read4450(brp_EM_Read4450_t params);
289 #endif
290 #endif // BALTECH_SDK_INTERNAL
291 #endif
292 
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