![]() |
LibDriver GP2Y1051AU0F
1.0.0
GP2Y1051AU0F full-featured driver
|
gp2y1051au0f basic driver modules More...
Data Structures | |
| struct | gp2y1051au0f_handle_s |
| gp2y1051au0f handle structure definition More... | |
| struct | gp2y1051au0f_info_s |
| gp2y1051au0f information structure definition More... | |
Typedefs | |
| typedef struct gp2y1051au0f_handle_s | gp2y1051au0f_handle_t |
| gp2y1051au0f handle structure definition More... | |
| typedef struct gp2y1051au0f_info_s | gp2y1051au0f_info_t |
| gp2y1051au0f information structure definition More... | |
Functions | |
| uint8_t | gp2y1051au0f_info (gp2y1051au0f_info_t *info) |
| get chip's information More... | |
| uint8_t | gp2y1051au0f_init (gp2y1051au0f_handle_t *handle) |
| initialize the chip More... | |
| uint8_t | gp2y1051au0f_deinit (gp2y1051au0f_handle_t *handle) |
| close the chip More... | |
| uint8_t | gp2y1051au0f_read (gp2y1051au0f_handle_t *handle, uint16_t *raw, float *mg_m3) |
| read the data More... | |
gp2y1051au0f basic driver modules
| typedef struct gp2y1051au0f_handle_s gp2y1051au0f_handle_t |
gp2y1051au0f handle structure definition
| typedef struct gp2y1051au0f_info_s gp2y1051au0f_info_t |
gp2y1051au0f information structure definition
| uint8_t gp2y1051au0f_deinit | ( | gp2y1051au0f_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a gp2y1051au0f handle structure |
Definition at line 123 of file driver_gp2y1051au0f.c.
| uint8_t gp2y1051au0f_info | ( | gp2y1051au0f_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a gp2y1051au0f info structure |
Definition at line 289 of file driver_gp2y1051au0f.c.
| uint8_t gp2y1051au0f_init | ( | gp2y1051au0f_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a gp2y1051au0f handle structure |
Definition at line 61 of file driver_gp2y1051au0f.c.
| uint8_t gp2y1051au0f_read | ( | gp2y1051au0f_handle_t * | handle, |
| uint16_t * | raw, | ||
| float * | mg_m3 | ||
| ) |
read the data
| [in] | *handle | pointer to a gp2y1051au0f handle structure |
| [out] | *raw | pointer to a raw buffer |
| [out] | *mg_m3 | pointer to a converted data buffer |
Definition at line 160 of file driver_gp2y1051au0f.c.