![]() |
LibDriver PMSX003
|
pmsx003 basic driver modules More...
Data Structures | |
| struct | pmsx003_data_s |
| pmsx003 data structure definition More... | |
| struct | pmsx003_handle_s |
| pmsx003 handle structure definition More... | |
| struct | pmsx003_info_s |
| pmsx003 information structure definition More... | |
Typedefs | |
| typedef struct pmsx003_data_s | pmsx003_data_t |
| pmsx003 data structure definition | |
| typedef struct pmsx003_handle_s | pmsx003_handle_t |
| pmsx003 handle structure definition | |
| typedef struct pmsx003_info_s | pmsx003_info_t |
| pmsx003 information structure definition | |
Enumerations | |
| enum | pmsx003_hard_mode_t { PMSX003_HARD_MODE_SLEEP = 0x00 , PMSX003_HARD_MODE_NORMAL = 0x01 } |
| pmsx003 hard mode enumeration definition More... | |
| enum | pmsx003_mode_t { PMSX003_MODE_PASSIVE = 0x00 , PMSX003_MODE_ACTIVE = 0x01 } |
| pmsx003 mode enumeration definition More... | |
Functions | |
| uint8_t | pmsx003_info (pmsx003_info_t *info) |
| get chip's information | |
| uint8_t | pmsx003_init (pmsx003_handle_t *handle) |
| initialize the chip | |
| uint8_t | pmsx003_deinit (pmsx003_handle_t *handle) |
| close the chip | |
| uint8_t | pmsx003_read (pmsx003_handle_t *handle, pmsx003_data_t *data) |
| read the data | |
| uint8_t | pmsx003_reset (pmsx003_handle_t *handle) |
| reset | |
| uint8_t | pmsx003_set_hard_mode (pmsx003_handle_t *handle, pmsx003_hard_mode_t mode) |
| set hard mode | |
| uint8_t | pmsx003_set_mode (pmsx003_handle_t *handle, pmsx003_mode_t mode) |
| set mode | |
| uint8_t | pmsx003_sleep (pmsx003_handle_t *handle) |
| sleep | |
| uint8_t | pmsx003_wake_up (pmsx003_handle_t *handle) |
| wake up | |
pmsx003 basic driver modules
| typedef struct pmsx003_data_s pmsx003_data_t |
pmsx003 data structure definition
| typedef struct pmsx003_handle_s pmsx003_handle_t |
pmsx003 handle structure definition
| typedef struct pmsx003_info_s pmsx003_info_t |
pmsx003 information structure definition
| enum pmsx003_hard_mode_t |
pmsx003 hard mode enumeration definition
| Enumerator | |
|---|---|
| PMSX003_HARD_MODE_SLEEP | sleep mode |
| PMSX003_HARD_MODE_NORMAL | normal mode |
Definition at line 62 of file driver_pmsx003.h.
| enum pmsx003_mode_t |
pmsx003 mode enumeration definition
| Enumerator | |
|---|---|
| PMSX003_MODE_PASSIVE | passive mode |
| PMSX003_MODE_ACTIVE | active mode |
Definition at line 71 of file driver_pmsx003.h.
| uint8_t pmsx003_deinit | ( | pmsx003_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a pmsx003 handle structure |
Definition at line 375 of file driver_pmsx003.c.
| uint8_t pmsx003_info | ( | pmsx003_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a pmsx003 info structure |
Definition at line 865 of file driver_pmsx003.c.
| uint8_t pmsx003_init | ( | pmsx003_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a pmsx003 handle structure |
Definition at line 213 of file driver_pmsx003.c.
| uint8_t pmsx003_read | ( | pmsx003_handle_t * | handle, |
| pmsx003_data_t * | data ) |
read the data
| [in] | *handle | pointer to a pmsx003 handle structure |
| [out] | *data | pointer to a data structure |
Definition at line 689 of file driver_pmsx003.c.
| uint8_t pmsx003_reset | ( | pmsx003_handle_t * | handle | ) |
reset
| [in] | *handle | pointer to a pmsx003 handle structure |
Definition at line 419 of file driver_pmsx003.c.
| uint8_t pmsx003_set_hard_mode | ( | pmsx003_handle_t * | handle, |
| pmsx003_hard_mode_t | mode ) |
set hard mode
| [in] | *handle | pointer to a pmsx003 handle structure |
| [in] | mode | hard mode |
Definition at line 459 of file driver_pmsx003.c.
| uint8_t pmsx003_set_mode | ( | pmsx003_handle_t * | handle, |
| pmsx003_mode_t | mode ) |
set mode
| [in] | *handle | pointer to a pmsx003 handle structure |
| [in] | mode | chip mode |
Definition at line 505 of file driver_pmsx003.c.
| uint8_t pmsx003_sleep | ( | pmsx003_handle_t * | handle | ) |
sleep
| [in] | *handle | pointer to a pmsx003 handle structure |
Definition at line 574 of file driver_pmsx003.c.
| uint8_t pmsx003_wake_up | ( | pmsx003_handle_t * | handle | ) |
wake up
| [in] | *handle | pointer to a pmsx003 handle structure |
Definition at line 642 of file driver_pmsx003.c.