![]() |
LibDriver SFA30
|
sfa30 basic driver modules More...
Data Structures | |
| struct | sfa30_data_s |
| sfa30 data structure definition More... | |
| struct | sfa30_handle_s |
| sfa30 handle structure definition More... | |
| struct | sfa30_info_s |
| sfa30 information structure definition More... | |
Typedefs | |
| typedef struct sfa30_data_s | sfa30_data_t |
| sfa30 data structure definition | |
| typedef struct sfa30_handle_s | sfa30_handle_t |
| sfa30 handle structure definition | |
| typedef struct sfa30_info_s | sfa30_info_t |
| sfa30 information structure definition | |
Enumerations | |
| enum | sfa30_interface_t { SFA30_INTERFACE_IIC = 0x00 , SFA30_INTERFACE_UART = 0x01 } |
| sfa30 interface enumeration definition More... | |
Functions | |
| uint8_t | sfa30_info (sfa30_info_t *info) |
| get chip information | |
| uint8_t | sfa30_set_interface (sfa30_handle_t *handle, sfa30_interface_t interface) |
| set the chip interface | |
| uint8_t | sfa30_get_interface (sfa30_handle_t *handle, sfa30_interface_t *interface) |
| get the chip interface | |
| uint8_t | sfa30_init (sfa30_handle_t *handle) |
| initialize the chip | |
| uint8_t | sfa30_deinit (sfa30_handle_t *handle) |
| close the chip | |
| uint8_t | sfa30_read (sfa30_handle_t *handle, sfa30_data_t *data) |
| read the result | |
| uint8_t | sfa30_start_measurement (sfa30_handle_t *handle) |
| start the measurement | |
| uint8_t | sfa30_stop_measurement (sfa30_handle_t *handle) |
| stop the measurement | |
| uint8_t | sfa30_reset (sfa30_handle_t *handle) |
| reset the chip | |
| uint8_t | sfa30_get_device_information (sfa30_handle_t *handle, char info[32]) |
| get device information | |
sfa30 basic driver modules
| typedef struct sfa30_data_s sfa30_data_t |
sfa30 data structure definition
| typedef struct sfa30_handle_s sfa30_handle_t |
sfa30 handle structure definition
| typedef struct sfa30_info_s sfa30_info_t |
sfa30 information structure definition
| enum sfa30_interface_t |
sfa30 interface enumeration definition
| Enumerator | |
|---|---|
| SFA30_INTERFACE_IIC | iic interface |
| SFA30_INTERFACE_UART | uart interface |
Definition at line 62 of file driver_sfa30.h.
| uint8_t sfa30_deinit | ( | sfa30_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an sfa30 handle structure |
Definition at line 1054 of file driver_sfa30.c.
| uint8_t sfa30_get_device_information | ( | sfa30_handle_t * | handle, |
| char | info[32] ) |
get device information
| [in] | *handle | pointer to an sfa30 handle structure |
| [out] | *info | pointer to an info buffer |
Definition at line 655 of file driver_sfa30.c.
| uint8_t sfa30_get_interface | ( | sfa30_handle_t * | handle, |
| sfa30_interface_t * | interface ) |
get the chip interface
| [in] | *handle | pointer to an sfa30 handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 497 of file driver_sfa30.c.
| uint8_t sfa30_info | ( | sfa30_info_t * | info | ) |
get chip information
| [out] | *info | pointer to an sfa30 info structure |
Definition at line 1241 of file driver_sfa30.c.
| uint8_t sfa30_init | ( | sfa30_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an sfa30 handle structure |
Definition at line 908 of file driver_sfa30.c.
| uint8_t sfa30_read | ( | sfa30_handle_t * | handle, |
| sfa30_data_t * | data ) |
read the result
| [in] | *handle | pointer to an sfa30 handle structure |
| [out] | *data | pointer to an sfa30_data_t structure |
Definition at line 814 of file driver_sfa30.c.
| uint8_t sfa30_reset | ( | sfa30_handle_t * | handle | ) |
reset the chip
| [in] | *handle | pointer to an sfa30 handle structure |
Definition at line 746 of file driver_sfa30.c.
| uint8_t sfa30_set_interface | ( | sfa30_handle_t * | handle, |
| sfa30_interface_t | interface ) |
set the chip interface
| [in] | *handle | pointer to an sfa30 handle structure |
| [in] | interface | chip interface |
Definition at line 476 of file driver_sfa30.c.
| uint8_t sfa30_start_measurement | ( | sfa30_handle_t * | handle | ) |
start the measurement
| [in] | *handle | pointer to an sfa30 handle structure |
Definition at line 519 of file driver_sfa30.c.
| uint8_t sfa30_stop_measurement | ( | sfa30_handle_t * | handle | ) |
stop the measurement
| [in] | *handle | pointer to an sfa30 handle structure |
Definition at line 587 of file driver_sfa30.c.