![]() |
LibDriver AOX4000
|
aox4000 basic driver modules More...
Data Structures | |
| struct | aox4000_handle_s |
| aox4000 handle structure definition More... | |
| struct | aox4000_info_s |
| aox4000 information structure definition More... | |
Macros | |
| #define | AOX4000_UART_DELAY_MS 200 |
| aox4000 uart delay definition | |
| #define | AOX4000_UART_POLL_DELAY_MS 3500 |
| aox4000 uart poll delay definition | |
Typedefs | |
| typedef struct aox4000_handle_s | aox4000_handle_t |
| aox4000 handle structure definition | |
| typedef struct aox4000_info_s | aox4000_info_t |
| aox4000 information structure definition | |
Enumerations | |
| enum | aox4000_status_t { AOX4000_STATUS_OK = 0x00 , AOX4000_STATUS_OVERRUN = 0x01 , AOX4000_STATUS_INVALID_COMMAND = 0x02 , AOX4000_STATUS_INVALID_FRAME = 0x03 , AOX4000_STATUS_INVALID_PARAM = 0x04 , AOX4000_STATUS_UNKNOWN = 0x05 } |
| aox4000 status enumeration definition More... | |
| enum | aox4000_mode_t { AOX4000_MODE_AUTO = 0x00 , AOX4000_MODE_REQUEST = 0x01 } |
| aox4000 mode enumeration definition More... | |
Functions | |
| uint8_t | aox4000_info (aox4000_info_t *info) |
| get chip's information | |
| uint8_t | aox4000_init (aox4000_handle_t *handle) |
| initialize the chip | |
| uint8_t | aox4000_deinit (aox4000_handle_t *handle) |
| close the chip | |
| uint8_t | aox4000_read (aox4000_handle_t *handle, float *oxygen_ppo2_mbar, float *oxygen_density_percentage, float *temperature_degree, float *pressure_mbar) |
| read data | |
| uint8_t | aox4000_read_oxygen_ppo2 (aox4000_handle_t *handle, float *mbar) |
| read oxygen ppo2 | |
| uint8_t | aox4000_read_oxygen_density (aox4000_handle_t *handle, float *percentage) |
| read oxygen density | |
| uint8_t | aox4000_read_temperature (aox4000_handle_t *handle, float *degree) |
| read temperature | |
| uint8_t | aox4000_read_pressure (aox4000_handle_t *handle, float *mbar) |
| read pressure | |
| uint8_t | aox4000_set_mode (aox4000_handle_t *handle, aox4000_mode_t mode) |
| set mode | |
| uint8_t | aox4000_get_mode (aox4000_handle_t *handle, aox4000_mode_t *mode) |
| get mode | |
| uint8_t | aox4000_get_last_error (aox4000_handle_t *handle, aox4000_status_t *status) |
| get last error | |
aox4000 basic driver modules
| #define AOX4000_UART_DELAY_MS 200 |
| #define AOX4000_UART_POLL_DELAY_MS 3500 |
| typedef struct aox4000_handle_s aox4000_handle_t |
aox4000 handle structure definition
| typedef struct aox4000_info_s aox4000_info_t |
aox4000 information structure definition
| enum aox4000_mode_t |
aox4000 mode enumeration definition
| Enumerator | |
|---|---|
| AOX4000_MODE_AUTO | auto mode |
| AOX4000_MODE_REQUEST | request mode |
Definition at line 90 of file driver_aox4000.h.
| enum aox4000_status_t |
aox4000 status enumeration definition
Definition at line 77 of file driver_aox4000.h.
| uint8_t aox4000_deinit | ( | aox4000_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an aox4000 handle structure |
Definition at line 400 of file driver_aox4000.c.
| uint8_t aox4000_get_last_error | ( | aox4000_handle_t * | handle, |
| aox4000_status_t * | status ) |
get last error
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 432 of file driver_aox4000.c.
| uint8_t aox4000_get_mode | ( | aox4000_handle_t * | handle, |
| aox4000_mode_t * | mode ) |
get mode
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *mode | pointer to a chip mode buffer |
Definition at line 533 of file driver_aox4000.c.
| uint8_t aox4000_info | ( | aox4000_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an aox4000 info structure |
Definition at line 1162 of file driver_aox4000.c.
| uint8_t aox4000_init | ( | aox4000_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an aox4000 handle structure |
Definition at line 331 of file driver_aox4000.c.
| uint8_t aox4000_read | ( | aox4000_handle_t * | handle, |
| float * | oxygen_ppo2_mbar, | ||
| float * | oxygen_density_percentage, | ||
| float * | temperature_degree, | ||
| float * | pressure_mbar ) |
read data
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *oxygen_ppo2_mbar | pointer to a oxygen ppo2 mbar buffer |
| [out] | *oxygen_density_percentage | pointer to an oxygen density percentage buffer |
| [out] | *temperature_degree | pointer to a temperature degree buffer |
| [out] | *pressure_mbar | pointer to a pressure mbar buffer |
Definition at line 604 of file driver_aox4000.c.
| uint8_t aox4000_read_oxygen_density | ( | aox4000_handle_t * | handle, |
| float * | percentage ) |
read oxygen density
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *percentage | pointer to an oxygen density percentage buffer |
Definition at line 796 of file driver_aox4000.c.
| uint8_t aox4000_read_oxygen_ppo2 | ( | aox4000_handle_t * | handle, |
| float * | mbar ) |
read oxygen ppo2
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *mbar | pointer to a oxygen ppo2 mbar buffer |
Definition at line 699 of file driver_aox4000.c.
| uint8_t aox4000_read_pressure | ( | aox4000_handle_t * | handle, |
| float * | mbar ) |
read pressure
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *mbar | pointer to a pressure mbar buffer |
Definition at line 893 of file driver_aox4000.c.
| uint8_t aox4000_read_temperature | ( | aox4000_handle_t * | handle, |
| float * | degree ) |
read temperature
| [in] | *handle | pointer to an aox4000 handle structure |
| [out] | *degree | pointer to a temperature degree buffer |
Definition at line 989 of file driver_aox4000.c.
| uint8_t aox4000_set_mode | ( | aox4000_handle_t * | handle, |
| aox4000_mode_t | mode ) |
set mode
| [in] | *handle | pointer to an aox4000 handle structure |
| [in] | mode | chip mode |
Definition at line 459 of file driver_aox4000.c.