![]() |
LibDriver BA111
|
ba111 basic driver modules More...
Data Structures | |
| struct | ba111_handle_s |
| ba111 handle structure definition More... | |
| struct | ba111_info_s |
| ba111 information structure definition More... | |
Typedefs | |
| typedef struct ba111_handle_s | ba111_handle_t |
| ba111 handle structure definition | |
| typedef struct ba111_info_s | ba111_info_t |
| ba111 information structure definition | |
Enumerations | |
| enum | ba111_status_t { BA111_STATUS_OK = 0x00 , BA111_STATUS_FRAME_ERROR = 0x01 , BA111_STATUS_BUSY = 0x02 , BA111_STATUS_CHECK_ERROR = 0x03 , BA111_STATUS_TEMPERATURE_OUT_OF_RANGE = 0x04 } |
| ba111 status enumeration definition More... | |
Functions | |
| uint8_t | ba111_info (ba111_info_t *info) |
| get chip's information | |
| uint8_t | ba111_init (ba111_handle_t *handle) |
| initialize the chip | |
| uint8_t | ba111_deinit (ba111_handle_t *handle) |
| close the chip | |
| uint8_t | ba111_read (ba111_handle_t *handle, uint16_t *tds_raw, uint16_t *tds_ppm, uint16_t *temperature_raw, float *temperature) |
| read the data | |
| uint8_t | ba111_baseline_calibration (ba111_handle_t *handle) |
| baseline calibration | |
| uint8_t | ba111_set_ntc_resistance (ba111_handle_t *handle, uint32_t ohm) |
| set ntc resistance | |
| uint8_t | ba111_set_ntc_b (ba111_handle_t *handle, uint16_t value) |
| set ntc b | |
| uint8_t | ba111_get_last_status (ba111_handle_t *handle, ba111_status_t *status) |
| get last status | |
ba111 basic driver modules
| typedef struct ba111_handle_s ba111_handle_t |
ba111 handle structure definition
| typedef struct ba111_info_s ba111_info_t |
ba111 information structure definition
| enum ba111_status_t |
ba111 status enumeration definition
| Enumerator | |
|---|---|
| BA111_STATUS_OK | ok |
| BA111_STATUS_FRAME_ERROR | frame error |
| BA111_STATUS_BUSY | busy |
| BA111_STATUS_CHECK_ERROR | check error |
| BA111_STATUS_TEMPERATURE_OUT_OF_RANGE | temperature out of range |
Definition at line 62 of file driver_ba111.h.
| uint8_t ba111_baseline_calibration | ( | ba111_handle_t * | handle | ) |
baseline calibration
| [in] | *handle | pointer to a ba111 handle structure |
Definition at line 327 of file driver_ba111.c.
| uint8_t ba111_deinit | ( | ba111_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a ba111 handle structure |
Definition at line 222 of file driver_ba111.c.
| uint8_t ba111_get_last_status | ( | ba111_handle_t * | handle, |
| ba111_status_t * | status ) |
get last status
| [in] | *handle | pointer to a ba111 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 537 of file driver_ba111.c.
| uint8_t ba111_info | ( | ba111_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a ba111 info structure |
Definition at line 639 of file driver_ba111.c.
| uint8_t ba111_init | ( | ba111_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a ba111 handle structure |
Definition at line 153 of file driver_ba111.c.
| uint8_t ba111_read | ( | ba111_handle_t * | handle, |
| uint16_t * | tds_raw, | ||
| uint16_t * | tds_ppm, | ||
| uint16_t * | temperature_raw, | ||
| float * | temperature ) |
read the data
| [in] | *handle | pointer to a ba111 handle structure |
| [out] | *tds_raw | pointer to a tds raw data buffer |
| [out] | *tds_ppm | pointer to a tds ppm data buffer |
| [out] | *temperature_raw | pointer to a temperature raw data buffer |
| [out] | *temperature | pointer to a converted temperature data buffer |
Definition at line 259 of file driver_ba111.c.
| uint8_t ba111_set_ntc_b | ( | ba111_handle_t * | handle, |
| uint16_t | value ) |
set ntc b
| [in] | *handle | pointer to a ba111 handle structure |
| [in] | value | ntc value |
Definition at line 469 of file driver_ba111.c.
| uint8_t ba111_set_ntc_resistance | ( | ba111_handle_t * | handle, |
| uint32_t | ohm ) |
set ntc resistance
| [in] | *handle | pointer to a ba111 handle structure |
| [in] | ohm | resistance ohm |
Definition at line 398 of file driver_ba111.c.