![]() |
LibDriver JED1XX
|
jed1xx base driver modules More...
Data Structures | |
| struct | jed1xx_handle_s |
| jed1xx handle structure definition More... | |
| struct | jed1xx_info_s |
| jed1xx information structure definition More... | |
Typedefs | |
| typedef struct jed1xx_handle_s | jed1xx_handle_t |
| jed1xx handle structure definition | |
| typedef struct jed1xx_info_s | jed1xx_info_t |
| jed1xx information structure definition | |
Enumerations | |
| enum | jed1xx_type_t { JED1XX_TYPE_101_VOC = 100 , JED1XX_TYPE_103_H2 = 5000 , JED1XX_TYPE_104_C0 = 500 , JED1XX_TYPE_105_NH3 = 300 , JED1XX_TYPE_106_H2S = 3 , JED1XX_TYPE_107_C2H5OH = 500 , JED1XX_TYPE_109_C3H8 = 10000 , JED1XX_TYPE_110_CF2CL2 = 1000 , JED1XX_TYPE_112_NO2 = 10 , JED1XX_TYPE_115_SMOG = 10000 , JED1XX_TYPE_116_CH2O = 100 , JED1XX_TYPE_117_CH3COCH3 = 500 , JED1XX_TYPE_131_O3 = 100 , JED1XX_TYPE_138_C6H6 = 100 } |
| jed1xx type enumeration definition More... | |
Functions | |
| uint8_t | jed1xx_info (jed1xx_info_t *info) |
| get chip's information | |
| uint8_t | jed1xx_set_type (jed1xx_handle_t *handle, jed1xx_type_t type) |
| set the chip type | |
| uint8_t | jed1xx_get_type (jed1xx_handle_t *handle, jed1xx_type_t *type) |
| get the chip type | |
| uint8_t | jed1xx_init (jed1xx_handle_t *handle) |
| initialize the chip | |
| uint8_t | jed1xx_deinit (jed1xx_handle_t *handle) |
| close the chip | |
| uint8_t | jed1xx_read (jed1xx_handle_t *handle, uint16_t *raw, float *ppm) |
| read data | |
jed1xx base driver modules
| typedef struct jed1xx_handle_s jed1xx_handle_t |
jed1xx handle structure definition
| typedef struct jed1xx_info_s jed1xx_info_t |
jed1xx information structure definition
| enum jed1xx_type_t |
jed1xx type enumeration definition
Definition at line 62 of file driver_jed1xx.h.
| uint8_t jed1xx_deinit | ( | jed1xx_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a jed1xx handle structure |
Definition at line 212 of file driver_jed1xx.c.
| uint8_t jed1xx_get_type | ( | jed1xx_handle_t * | handle, |
| jed1xx_type_t * | type ) |
get the chip type
| [in] | *handle | pointer to a jed1xx handle structure |
| [out] | *type | pointer to a chip type buffer |
Definition at line 128 of file driver_jed1xx.c.
| uint8_t jed1xx_info | ( | jed1xx_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a jed1xx info structure |
Definition at line 346 of file driver_jed1xx.c.
| uint8_t jed1xx_init | ( | jed1xx_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a jed1xx handle structure |
Definition at line 150 of file driver_jed1xx.c.
| uint8_t jed1xx_read | ( | jed1xx_handle_t * | handle, |
| uint16_t * | raw, | ||
| float * | ppm ) |
read data
| [in] | *handle | pointer to a jed1xx handle structure |
| [out] | *raw | pointer to a raw data buffer |
| [out] | *ppm | pointer to a converted data buffer |
Definition at line 246 of file driver_jed1xx.c.
| uint8_t jed1xx_set_type | ( | jed1xx_handle_t * | handle, |
| jed1xx_type_t | type ) |
set the chip type
| [in] | *handle | pointer to a jed1xx handle structure |
| [in] | type | chip type |
Definition at line 107 of file driver_jed1xx.c.