36 typedef enum __pn512_state {
38 pn512_state_target_autocoll,
39 pn512_state_initiator_transceive_first_frame,
40 pn512_state_transceive,
41 pn512_state_transceive_last_frame,
44 typedef enum __pn512_transceive_mode {
45 pn512_transceive_mode_idle,
46 pn512_transceive_mode_target_autocoll,
47 pn512_transceive_mode_transmit,
48 pn512_transceive_mode_transmit_and_target_autocoll,
49 pn512_transceive_mode_transceive,
50 pn512_transceive_mode_receive,
51 } pn512_transceive_mode_t;
71 pn512_transceive_mode_t nextFrameMode;
73 nfc_framing_t framing;
80 uint8_t readFirstByteAlign;
81 uint8_t readLastByteLength;
82 uint8_t writeLastByteLength;
89 pn512_polling_state_start_listening,
91 pn512_polling_state_listen_wait_for_remote_field,
92 pn512_polling_state_listen_anticollision,
94 pn512_polling_state_listen_no_target_found,
96 pn512_polling_state_start_polling,
98 pn512_polling_state_rf_collision_avoidance,
99 pn512_polling_state_polling_nfc_a_start,
100 pn512_polling_state_polling_nfc_a_gt,
101 pn512_polling_state_polling_nfc_a_anticollision,
102 pn512_polling_state_polling_nfc_b_start,
103 pn512_polling_state_polling_nfc_b_gt,
104 pn512_polling_state_polling_nfc_b_anticollision,
105 pn512_polling_state_polling_nfc_f_start,
106 pn512_polling_state_polling_nfc_f_gt,
107 pn512_polling_state_polling_nfc_f_anticollision,
109 pn512_polling_state_finish_polling,
117 pn512_transceive_mode_t mode;
127 uint8_t cascade_level;
134 uint8_t slots_num_exponent;
int nfc_err_t
Type for NFC errors.