![]() |
LibDriver NTAG21X
|
ntag21x basic driver modules More...
Data Structures | |
| struct | ntag21x_version_s |
| ntag21x version structure definition More... | |
| struct | ntag21x_handle_s |
| ntag21x handle structure definition More... | |
| struct | ntag21x_info_s |
| ntag21x information structure definition More... | |
Typedefs | |
| typedef struct ntag21x_version_s | ntag21x_version_t |
| ntag21x version structure definition | |
| typedef struct ntag21x_handle_s | ntag21x_handle_t |
| ntag21x handle structure definition | |
| typedef struct ntag21x_info_s | ntag21x_info_t |
| ntag21x information structure definition | |
Functions | |
| uint8_t | ntag21x_info (ntag21x_info_t *info) |
| get chip information | |
| uint8_t | ntag21x_init (ntag21x_handle_t *handle) |
| initialize the chip | |
| uint8_t | ntag21x_deinit (ntag21x_handle_t *handle) |
| close the chip | |
| uint8_t | ntag21x_request (ntag21x_handle_t *handle, ntag21x_type_t *type) |
| ntag21x request | |
| uint8_t | ntag21x_wake_up (ntag21x_handle_t *handle, ntag21x_type_t *type) |
| ntag21x wake up | |
| uint8_t | ntag21x_halt (ntag21x_handle_t *handle) |
| ntag21x halt | |
| uint8_t | ntag21x_anticollision_cl1 (ntag21x_handle_t *handle, uint8_t id[4]) |
| ntag21x anti collision cl1 | |
| uint8_t | ntag21x_anticollision_cl2 (ntag21x_handle_t *handle, uint8_t id[4]) |
| ntag21x anti collision cl2 | |
| uint8_t | ntag21x_select_cl1 (ntag21x_handle_t *handle, uint8_t id[4]) |
| ntag21x select cl1 | |
| uint8_t | ntag21x_select_cl2 (ntag21x_handle_t *handle, uint8_t id[4]) |
| ntag21x select cl2 | |
| uint8_t | ntag21x_get_version (ntag21x_handle_t *handle, ntag21x_version_t *version) |
| ntag21x get the version | |
| uint8_t | ntag21x_read_four_pages (ntag21x_handle_t *handle, uint8_t start_page, uint8_t data[16]) |
| ntag21x read four pages | |
| uint8_t | ntag21x_read_page (ntag21x_handle_t *handle, uint8_t page, uint8_t data[4]) |
| ntag21x read page | |
| uint8_t | ntag21x_fast_read_page (ntag21x_handle_t *handle, uint8_t start_page, uint8_t stop_page, uint8_t *data, uint16_t *len) |
| ntag21x fast read page | |
| uint8_t | ntag21x_compatibility_write_page (ntag21x_handle_t *handle, uint8_t page, uint8_t data[4]) |
| ntag21x compatibility write page | |
| uint8_t | ntag21x_write_page (ntag21x_handle_t *handle, uint8_t page, uint8_t data[4]) |
| ntag21x write page | |
| uint8_t | ntag21x_read_counter (ntag21x_handle_t *handle, uint32_t *cnt) |
| ntag21x read the counter | |
| uint8_t | ntag21x_read_signature (ntag21x_handle_t *handle, uint8_t signature[32]) |
| ntag21x read the signature | |
| uint8_t | ntag21x_get_serial_number (ntag21x_handle_t *handle, uint8_t number[7]) |
| ntag21x get the serial number | |
| uint8_t | ntag21x_get_capability_container (ntag21x_handle_t *handle, ntag21x_capability_container_t *container) |
| ntag21x get the capability container | |
| uint8_t | ntag21x_set_password (ntag21x_handle_t *handle, uint8_t pwd[4]) |
| ntag21x set the password | |
| uint8_t | ntag21x_set_pack (ntag21x_handle_t *handle, uint8_t pack[2]) |
| ntag21x set the pack | |
| uint8_t | ntag21x_authenticate (ntag21x_handle_t *handle, uint8_t pwd[4], uint8_t pack[2]) |
| ntag21x authenticate | |
| uint8_t | ntag21x_set_dynamic_lock (ntag21x_handle_t *handle, uint8_t lock[3]) |
| ntag21x set the dynamic lock | |
| uint8_t | ntag21x_get_dynamic_lock (ntag21x_handle_t *handle, uint8_t lock[3]) |
| ntag21x get the dynamic lock | |
| uint8_t | ntag21x_set_static_lock (ntag21x_handle_t *handle, uint8_t lock[2]) |
| ntag21x set the static lock | |
| uint8_t | ntag21x_get_static_lock (ntag21x_handle_t *handle, uint8_t lock[2]) |
| ntag21x get the static lock | |
| uint8_t | ntag21x_set_mirror (ntag21x_handle_t *handle, ntag21x_mirror_t mirror) |
| ntag21x set the mirror | |
| uint8_t | ntag21x_get_mirror (ntag21x_handle_t *handle, ntag21x_mirror_t *mirror) |
| ntag21x get the mirror | |
| uint8_t | ntag21x_set_mirror_byte (ntag21x_handle_t *handle, ntag21x_mirror_byte_t byte) |
| ntag21x set the mirror byte | |
| uint8_t | ntag21x_get_mirror_byte (ntag21x_handle_t *handle, ntag21x_mirror_byte_t *byte) |
| ntag21x get the mirror byte | |
| uint8_t | ntag21x_set_modulation_mode (ntag21x_handle_t *handle, ntag21x_modulation_mode_t mode) |
| ntag21x set the modulation mode | |
| uint8_t | ntag21x_get_modulation_mode (ntag21x_handle_t *handle, ntag21x_modulation_mode_t *mode) |
| ntag21x get the modulation mode | |
| uint8_t | ntag21x_set_mirror_page (ntag21x_handle_t *handle, uint8_t page) |
| ntag21x set the mirror page | |
| uint8_t | ntag21x_get_mirror_page (ntag21x_handle_t *handle, uint8_t *page) |
| ntag21x get the mirror page | |
| uint8_t | ntag21x_set_protect_start_page (ntag21x_handle_t *handle, uint8_t page) |
| ntag21x set the start page of protection | |
| uint8_t | ntag21x_get_protect_start_page (ntag21x_handle_t *handle, uint8_t *page) |
| ntag21x get the start page of protection | |
| uint8_t | ntag21x_set_access (ntag21x_handle_t *handle, ntag21x_access_t access, ntag21x_bool_t enable) |
| ntag21x enable or disable access | |
| uint8_t | ntag21x_get_access (ntag21x_handle_t *handle, ntag21x_access_t access, ntag21x_bool_t *enable) |
| ntag21x get the access status | |
| uint8_t | ntag21x_set_authenticate_limitation (ntag21x_handle_t *handle, uint8_t limit) |
| ntag21x set the authenticate limitation | |
| uint8_t | ntag21x_get_authenticate_limitation (ntag21x_handle_t *handle, uint8_t *limit) |
| ntag21x get the authenticate limitation | |
ntag21x basic driver modules
| typedef struct ntag21x_handle_s ntag21x_handle_t |
ntag21x handle structure definition
| typedef struct ntag21x_info_s ntag21x_info_t |
ntag21x information structure definition
| typedef struct ntag21x_version_s ntag21x_version_t |
ntag21x version structure definition
| enum ntag21x_access_t |
ntag21x access enumeration definition
Definition at line 121 of file driver_ntag21x.h.
| enum ntag21x_bool_t |
ntag21x bool enumeration definition
| Enumerator | |
|---|---|
| NTAG21X_BOOL_FALSE | false |
| NTAG21X_BOOL_TRUE | true |
Definition at line 62 of file driver_ntag21x.h.
ntag21x capability container enumeration definition
| Enumerator | |
|---|---|
| NTAG21X_CAPABILITY_CONTAINER_144_BYTE_NTAG213 | ntag213 |
| NTAG21X_CAPABILITY_CONTAINER_496_BYTE_NTAG215 | ntag215 |
| NTAG21X_CAPABILITY_CONTAINER_872_BYTE_NTAG216 | ntag216 |
Definition at line 80 of file driver_ntag21x.h.
ntag21x mirror byte enumeration definition
| Enumerator | |
|---|---|
| NTAG21X_MIRROR_BYTE_0 | byte0 |
| NTAG21X_MIRROR_BYTE_1 | byte1 |
| NTAG21X_MIRROR_BYTE_2 | byte2 |
| NTAG21X_MIRROR_BYTE_3 | byte3 |
Definition at line 101 of file driver_ntag21x.h.
| enum ntag21x_mirror_t |
ntag21x mirror enumeration definition
Definition at line 90 of file driver_ntag21x.h.
ntag21x modulation mode enumeration definition
| Enumerator | |
|---|---|
| NTAG21X_MODULATION_MODE_NORMAL | normal |
| NTAG21X_MODULATION_MODE_STRONG | strong |
Definition at line 112 of file driver_ntag21x.h.
| enum ntag21x_type_t |
ntag21x type enumeration definition
| Enumerator | |
|---|---|
| NTAG21X_TYPE_INVALID | invalid |
| NTAG21X_TYPE_213_5_6 | ntag213/5/6 |
Definition at line 71 of file driver_ntag21x.h.
| uint8_t ntag21x_anticollision_cl1 | ( | ntag21x_handle_t * | handle, |
| uint8_t | id[4] ) |
ntag21x anti collision cl1
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *id | pointer to an id buffer |
Definition at line 469 of file driver_ntag21x.c.
| uint8_t ntag21x_anticollision_cl2 | ( | ntag21x_handle_t * | handle, |
| uint8_t | id[4] ) |
ntag21x anti collision cl2
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *id | pointer to an id buffer |
Definition at line 534 of file driver_ntag21x.c.
| uint8_t ntag21x_authenticate | ( | ntag21x_handle_t * | handle, |
| uint8_t | pwd[4], | ||
| uint8_t | pack[2] ) |
ntag21x authenticate
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *pwd | pointer to a pwd buffer |
| [in] | *pack | pointer to a pack buffer |
Definition at line 1487 of file driver_ntag21x.c.
| uint8_t ntag21x_compatibility_write_page | ( | ntag21x_handle_t * | handle, |
| uint8_t | page, | ||
| uint8_t | data[4] ) |
ntag21x compatibility write page
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | page | page of write |
| [in] | *data | pointer to a data buffer |
Definition at line 1338 of file driver_ntag21x.c.
| uint8_t ntag21x_deinit | ( | ntag21x_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an ntag21x handle structure |
Definition at line 268 of file driver_ntag21x.c.
| uint8_t ntag21x_fast_read_page | ( | ntag21x_handle_t * | handle, |
| uint8_t | start_page, | ||
| uint8_t | stop_page, | ||
| uint8_t * | data, | ||
| uint16_t * | len ) |
ntag21x fast read page
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | start_page | start page |
| [in] | stop_page | stop page |
| [out] | *data | pointer to a data buffer |
| [in,out] | *len | pointer to a data length buffer |
Definition at line 1251 of file driver_ntag21x.c.
| uint8_t ntag21x_get_access | ( | ntag21x_handle_t * | handle, |
| ntag21x_access_t | access, | ||
| ntag21x_bool_t * | enable ) |
ntag21x get the access status
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | access | set access |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2435 of file driver_ntag21x.c.
| uint8_t ntag21x_get_authenticate_limitation | ( | ntag21x_handle_t * | handle, |
| uint8_t * | limit ) |
ntag21x get the authenticate limitation
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *limit | pointer to an authenticate limitation buffer |
Definition at line 2526 of file driver_ntag21x.c.
| uint8_t ntag21x_get_capability_container | ( | ntag21x_handle_t * | handle, |
| ntag21x_capability_container_t * | container ) |
ntag21x get the capability container
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *container | pointer to a capability container buffer |
Definition at line 1019 of file driver_ntag21x.c.
| uint8_t ntag21x_get_dynamic_lock | ( | ntag21x_handle_t * | handle, |
| uint8_t | lock[3] ) |
ntag21x get the dynamic lock
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *lock | pointer to a lock buffer |
Definition at line 1774 of file driver_ntag21x.c.
| uint8_t ntag21x_get_mirror | ( | ntag21x_handle_t * | handle, |
| ntag21x_mirror_t * | mirror ) |
ntag21x get the mirror
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *mirror | pointer to a chip mirror mode buffer |
Definition at line 2015 of file driver_ntag21x.c.
| uint8_t ntag21x_get_mirror_byte | ( | ntag21x_handle_t * | handle, |
| ntag21x_mirror_byte_t * | byte ) |
ntag21x get the mirror byte
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *byte | pointer to a mirror byte buffer |
Definition at line 2099 of file driver_ntag21x.c.
| uint8_t ntag21x_get_mirror_page | ( | ntag21x_handle_t * | handle, |
| uint8_t * | page ) |
ntag21x get the mirror page
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *page | pointer to a mirror page buffer |
Definition at line 2266 of file driver_ntag21x.c.
| uint8_t ntag21x_get_modulation_mode | ( | ntag21x_handle_t * | handle, |
| ntag21x_modulation_mode_t * | mode ) |
ntag21x get the modulation mode
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *mode | pointer to a modulation mode buffer |
Definition at line 2183 of file driver_ntag21x.c.
| uint8_t ntag21x_get_protect_start_page | ( | ntag21x_handle_t * | handle, |
| uint8_t * | page ) |
ntag21x get the start page of protection
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *page | pointer to a start page buffer |
Definition at line 2349 of file driver_ntag21x.c.
| uint8_t ntag21x_get_serial_number | ( | ntag21x_handle_t * | handle, |
| uint8_t | number[7] ) |
ntag21x get the serial number
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *number | pointer to a number buffer |
Definition at line 948 of file driver_ntag21x.c.
| uint8_t ntag21x_get_static_lock | ( | ntag21x_handle_t * | handle, |
| uint8_t | lock[2] ) |
ntag21x get the static lock
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *lock | pointer to a lock buffer |
Definition at line 1906 of file driver_ntag21x.c.
| uint8_t ntag21x_get_version | ( | ntag21x_handle_t * | handle, |
| ntag21x_version_t * | version ) |
ntag21x get the version
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *version | pointer to a version structure |
Definition at line 733 of file driver_ntag21x.c.
| uint8_t ntag21x_halt | ( | ntag21x_handle_t * | handle | ) |
ntag21x halt
| [in] | *handle | pointer to an ntag21x handle structure |
Definition at line 430 of file driver_ntag21x.c.
| uint8_t ntag21x_info | ( | ntag21x_info_t * | info | ) |
get chip information
| [out] | *info | pointer to an ntag21x info structure |
Definition at line 2595 of file driver_ntag21x.c.
| uint8_t ntag21x_init | ( | ntag21x_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an ntag21x handle structure |
Definition at line 207 of file driver_ntag21x.c.
| uint8_t ntag21x_read_counter | ( | ntag21x_handle_t * | handle, |
| uint32_t * | cnt ) |
ntag21x read the counter
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *cnt | pointer to a counter buffer |
Definition at line 819 of file driver_ntag21x.c.
| uint8_t ntag21x_read_four_pages | ( | ntag21x_handle_t * | handle, |
| uint8_t | start_page, | ||
| uint8_t | data[16] ) |
ntag21x read four pages
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | start_page | start page of read |
| [out] | *data | pointer to a data buffer |
Definition at line 1115 of file driver_ntag21x.c.
| uint8_t ntag21x_read_page | ( | ntag21x_handle_t * | handle, |
| uint8_t | page, | ||
| uint8_t | data[4] ) |
ntag21x read page
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | page | page of read |
| [out] | *data | pointer to a data buffer |
Definition at line 1180 of file driver_ntag21x.c.
| uint8_t ntag21x_read_signature | ( | ntag21x_handle_t * | handle, |
| uint8_t | signature[32] ) |
ntag21x read the signature
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *signature | pointer to a signature buffer |
Definition at line 884 of file driver_ntag21x.c.
| uint8_t ntag21x_request | ( | ntag21x_handle_t * | handle, |
| ntag21x_type_t * | type ) |
ntag21x request
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *type | pointer to a type buffer |
Definition at line 306 of file driver_ntag21x.c.
| uint8_t ntag21x_select_cl1 | ( | ntag21x_handle_t * | handle, |
| uint8_t | id[4] ) |
ntag21x select cl1
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *id | pointer to an id buffer |
Definition at line 599 of file driver_ntag21x.c.
| uint8_t ntag21x_select_cl2 | ( | ntag21x_handle_t * | handle, |
| uint8_t | id[4] ) |
ntag21x select cl2
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *id | pointer to an id buffer |
Definition at line 666 of file driver_ntag21x.c.
| uint8_t ntag21x_set_access | ( | ntag21x_handle_t * | handle, |
| ntag21x_access_t | access, | ||
| ntag21x_bool_t | enable ) |
ntag21x enable or disable access
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | access | set access |
| [in] | enable | bool value |
Definition at line 2388 of file driver_ntag21x.c.
| uint8_t ntag21x_set_authenticate_limitation | ( | ntag21x_handle_t * | handle, |
| uint8_t | limit ) |
ntag21x set the authenticate limitation
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | limit | authenticate limitation |
Definition at line 2474 of file driver_ntag21x.c.
| uint8_t ntag21x_set_dynamic_lock | ( | ntag21x_handle_t * | handle, |
| uint8_t | lock[3] ) |
ntag21x set the dynamic lock
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *lock | pointer to a lock buffer |
Definition at line 1712 of file driver_ntag21x.c.
| uint8_t ntag21x_set_mirror | ( | ntag21x_handle_t * | handle, |
| ntag21x_mirror_t | mirror ) |
ntag21x set the mirror
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | mirror | chip mirror mode |
Definition at line 1969 of file driver_ntag21x.c.
| uint8_t ntag21x_set_mirror_byte | ( | ntag21x_handle_t * | handle, |
| ntag21x_mirror_byte_t | byte ) |
ntag21x set the mirror byte
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | byte | mirror byte |
Definition at line 2053 of file driver_ntag21x.c.
| uint8_t ntag21x_set_mirror_page | ( | ntag21x_handle_t * | handle, |
| uint8_t | page ) |
ntag21x set the mirror page
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | page | mirror page |
Definition at line 2221 of file driver_ntag21x.c.
| uint8_t ntag21x_set_modulation_mode | ( | ntag21x_handle_t * | handle, |
| ntag21x_modulation_mode_t | mode ) |
ntag21x set the modulation mode
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | mode | modulation mode |
Definition at line 2137 of file driver_ntag21x.c.
| uint8_t ntag21x_set_pack | ( | ntag21x_handle_t * | handle, |
| uint8_t | pack[2] ) |
ntag21x set the pack
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *pack | pointer to a pack buffer |
Definition at line 1621 of file driver_ntag21x.c.
| uint8_t ntag21x_set_password | ( | ntag21x_handle_t * | handle, |
| uint8_t | pwd[4] ) |
ntag21x set the password
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *pwd | pointer to a password buffer |
Definition at line 1559 of file driver_ntag21x.c.
| uint8_t ntag21x_set_protect_start_page | ( | ntag21x_handle_t * | handle, |
| uint8_t | page ) |
ntag21x set the start page of protection
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | page | start page |
Definition at line 2304 of file driver_ntag21x.c.
| uint8_t ntag21x_set_static_lock | ( | ntag21x_handle_t * | handle, |
| uint8_t | lock[2] ) |
ntag21x set the static lock
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | *lock | pointer to a lock buffer |
Definition at line 1844 of file driver_ntag21x.c.
| uint8_t ntag21x_wake_up | ( | ntag21x_handle_t * | handle, |
| ntag21x_type_t * | type ) |
ntag21x wake up
| [in] | *handle | pointer to an ntag21x handle structure |
| [out] | *type | pointer to a type buffer |
Definition at line 369 of file driver_ntag21x.c.
| uint8_t ntag21x_write_page | ( | ntag21x_handle_t * | handle, |
| uint8_t | page, | ||
| uint8_t | data[4] ) |
ntag21x write page
| [in] | *handle | pointer to an ntag21x handle structure |
| [in] | page | page of write |
| [in] | *data | pointer to a data buffer |
Definition at line 1423 of file driver_ntag21x.c.