afs01 base driver modules
More...
afs01 base driver modules
◆ afs01_handle_t
afs01 handle structure definition
◆ afs01_info_t
afs01 information structure definition
◆ afs01_deinit()
close the chip
- Parameters
-
| [in] | *handle | pointer to an afs01 handle structure |
- Returns
- status code
- 0 success
- 1 iic deinit failed
- 2 handle is NULL
- 3 handle is not initialized
- Note
- none
Definition at line 174 of file driver_afs01.c.
◆ afs01_get_chip_id()
get chip id
- Parameters
-
| [in] | *handle | pointer to an afs01 handle structure |
| [out] | *id | pointer to an id buffer |
- Returns
- status code
- 0 success
- 1 get chip id failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 crc error
- Note
- none
Definition at line 254 of file driver_afs01.c.
◆ afs01_info()
get chip's information
- Parameters
-
| [out] | *info | pointer to an afs01 info structure |
- Returns
- status code
- 0 success
- 2 handle is NULL
- Note
- none
Definition at line 335 of file driver_afs01.c.
◆ afs01_init()
initialize the chip
- Parameters
-
| [in] | *handle | pointer to an afs01 handle structure |
- Returns
- status code
- 0 success
- 1 iic initialization failed
- 2 handle is NULL
- 3 linked functions is NULL
- Note
- none
Definition at line 118 of file driver_afs01.c.
◆ afs01_read()
| uint8_t afs01_read |
( |
afs01_handle_t * | handle, |
|
|
uint16_t * | raw, |
|
|
float * | sccm ) |
read data
- Parameters
-
| [in] | *handle | pointer to an afs01 handle structure |
| [out] | *raw | pointer to a raw data buffer |
| [out] | *sccm | pointer to a converted data buffer |
- Returns
- status code
- 0 success
- 1 read failed
- 2 handle is NULL
- 3 handle is not initialized
- 4 crc error
- Note
- none
Definition at line 209 of file driver_afs01.c.