• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef RTDTEXT_H_
2 #define RTDTEXT_H_
3 
4 #include "NT3H.h"
5 
6 #define BIT_STATUS (1<<7)
7 #define BIT_RFU	   (1<<6)
8 
9 
10 #define MASK_STATUS 0x80
11 #define MASK_RFU    0x40
12 #define MASK_IANA   0b00111111
13 
14 typedef struct {
15     char *body;
16     uint8_t bodyLength;
17 }RtdTextUserPayload;
18 
19 typedef struct {
20     uint8_t     status;
21     uint8_t     language[2];
22     RtdTextUserPayload rtdPayload;
23 }RtdTextTypeStr;
24 
25 uint8_t addRtdText(RtdTextTypeStr *typeStr);
26 
27 void prepareText(NDEFDataStr *data, RecordPosEnu position, uint8_t *text);
28 #endif /* NDEFTEXT_H_ */
29