LibDriver EM4100
Loading...
Searching...
No Matches
em4100 basic driver function

em4100 basic driver modules More...

Collaboration diagram for em4100 basic driver function:

Data Structures

struct  em4100_handle_s
 em4100 handle structure definition More...
struct  em4100_info_s
 em4100 information structure definition More...

Typedefs

typedef struct em4100_handle_s em4100_handle_t
 em4100 handle structure definition
typedef struct em4100_info_s em4100_info_t
 em4100 information structure definition

Functions

uint8_t em4100_info (em4100_info_t *info)
 get chip's information
uint8_t em4100_init (em4100_handle_t *handle)
 initialize the chip
uint8_t em4100_deinit (em4100_handle_t *handle)
 close the chip
uint8_t em4100_read (em4100_handle_t *handle, uint8_t id[5])
 read data
uint8_t em4100_print (em4100_handle_t *handle, uint8_t buf[5])
 print id

Detailed Description

em4100 basic driver modules

Typedef Documentation

◆ em4100_handle_t

em4100 handle structure definition

◆ em4100_info_t

typedef struct em4100_info_s em4100_info_t

em4100 information structure definition

Function Documentation

◆ em4100_deinit()

uint8_t em4100_deinit ( em4100_handle_t * handle)

close the chip

Parameters
[in]*handlepointer 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()

uint8_t em4100_info ( em4100_info_t * info)

get chip's information

Parameters
[out]*infopointer 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()

uint8_t em4100_init ( em4100_handle_t * handle)

initialize the chip

Parameters
[in]*handlepointer 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()

uint8_t em4100_print ( em4100_handle_t * handle,
uint8_t buf[5] )

print id

Parameters
[in]*handlepointer to an em4100 handle structure
[in]*bufpointer 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()

uint8_t em4100_read ( em4100_handle_t * handle,
uint8_t id[5] )

read data

Parameters
[in]*handlepointer to an em4100 handle structure
[out]*idpointer 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.