em4100 basic driver modules
More...
em4100 basic driver modules
◆ em4100_handle_t
em4100 handle structure definition
◆ em4100_info_t
em4100 information structure definition
◆ em4100_deinit()
close the chip
- Parameters
-
| [in] | *handle | pointer to an em4100 handle structure |
- Returns
- status code
- 0 success
- 1 deinit failed
- 2 handle is NULL
- 3 handle is not initialized
- Note
- none
Definition at line 323 of file driver_em4100.c.
◆ em4100_info()
get chip's information
- Parameters
-
| [out] | *info | pointer to an em4100 info structure |
- Returns
- status code
- 0 success
- 2 handle is NULL
- Note
- none
Definition at line 449 of file driver_em4100.c.
◆ em4100_init()
initialize the chip
- Parameters
-
| [in] | *handle | pointer to an em4100 handle structure |
- Returns
- status code
- 0 success
- 1 contactless initialization failed
- 2 handle is NULL
- 3 linked functions is NULL
- Note
- none
Definition at line 264 of file driver_em4100.c.
◆ em4100_print()
print id
- Parameters
-
| [in] | *handle | pointer to an em4100 handle structure |
| [in] | *buf | pointer to an id buffer |
- Returns
- status code
- 0 success
- 2 handle is NULL
- 3 linked functions is NULL
- Note
- none
Definition at line 417 of file driver_em4100.c.
◆ em4100_read()
read data
- Parameters
-
| [in] | *handle | pointer to an em4100 handle structure |
| [out] | *id | pointer to an id buffer |
- Returns
- status code
- 0 success
- 1 manchester decode failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 read failed
- 5 raw decode failed
- 6 frame decode failed
- Note
- none
Definition at line 362 of file driver_em4100.c.