![]() |
LibDriver AMG8833
|
amg8833 basic driver modules More...
Data Structures | |
| struct | amg8833_handle_s |
| amg8833 handle structure definition More... | |
| struct | amg8833_info_s |
| amg8833 information structure definition More... | |
Typedefs | |
| typedef struct amg8833_handle_s | amg8833_handle_t |
| amg8833 handle structure definition | |
| typedef struct amg8833_info_s | amg8833_info_t |
| amg8833 information structure definition | |
Functions | |
| uint8_t | amg8833_info (amg8833_info_t *info) |
| get chip's information | |
| uint8_t | amg8833_irq_handler (amg8833_handle_t *handle) |
| irq handler | |
| uint8_t | amg8833_set_addr_pin (amg8833_handle_t *handle, amg8833_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | amg8833_get_addr_pin (amg8833_handle_t *handle, amg8833_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | amg8833_init (amg8833_handle_t *handle) |
| initialize the chip | |
| uint8_t | amg8833_deinit (amg8833_handle_t *handle) |
| close the chip | |
| uint8_t | amg8833_read_temperature (amg8833_handle_t *handle, int16_t *raw, float *temp) |
| read the temperature | |
| uint8_t | amg8833_read_temperature_array (amg8833_handle_t *handle, int16_t raw[8][8], float temp[8][8]) |
| read the temperature array | |
| uint8_t | amg8833_get_interrupt_table (amg8833_handle_t *handle, uint8_t table[8][1]) |
| get the interrupt table | |
| uint8_t | amg8833_set_mode (amg8833_handle_t *handle, amg8833_mode_t mode) |
| set the mode | |
| uint8_t | amg8833_get_mode (amg8833_handle_t *handle, amg8833_mode_t *mode) |
| get the mode | |
| uint8_t | amg8833_reset (amg8833_handle_t *handle, amg8833_reset_type_t type) |
| reset the chip | |
| uint8_t | amg8833_set_frame_rate (amg8833_handle_t *handle, amg8833_frame_rate_t rate) |
| set the frame rate | |
| uint8_t | amg8833_get_frame_rate (amg8833_handle_t *handle, amg8833_frame_rate_t *rate) |
| get the frame rate | |
| uint8_t | amg8833_set_interrupt_mode (amg8833_handle_t *handle, amg8833_interrupt_mode_t mode) |
| set the interrupt mode | |
| uint8_t | amg8833_get_interrupt_mode (amg8833_handle_t *handle, amg8833_interrupt_mode_t *mode) |
| get the interrupt mode | |
| uint8_t | amg8833_set_interrupt (amg8833_handle_t *handle, amg8833_bool_t enable) |
| enable or disable the interrupt | |
| uint8_t | amg8833_get_interrupt (amg8833_handle_t *handle, amg8833_bool_t *enable) |
| get the interrupt status | |
| uint8_t | amg8833_get_status (amg8833_handle_t *handle, uint8_t *status) |
| get the status | |
| uint8_t | amg8833_clear_status (amg8833_handle_t *handle, amg8833_status_t status) |
| clear the interrupt status | |
| uint8_t | amg8833_set_average_mode (amg8833_handle_t *handle, amg8833_average_mode_t mode) |
| set the average_mode | |
| uint8_t | amg8833_get_average_mode (amg8833_handle_t *handle, amg8833_average_mode_t *mode) |
| get the average_mode | |
| uint8_t | amg8833_set_interrupt_high_level (amg8833_handle_t *handle, int16_t level) |
| set the interrupt high level | |
| uint8_t | amg8833_get_interrupt_high_level (amg8833_handle_t *handle, int16_t *level) |
| get the interrupt high level | |
| uint8_t | amg8833_set_interrupt_low_level (amg8833_handle_t *handle, int16_t level) |
| set the interrupt low level | |
| uint8_t | amg8833_get_interrupt_low_level (amg8833_handle_t *handle, int16_t *level) |
| get the interrupt low level | |
| uint8_t | amg8833_set_interrupt_hysteresis_level (amg8833_handle_t *handle, int16_t level) |
| set the interrupt hysteresis level | |
| uint8_t | amg8833_get_interrupt_hysteresis_level (amg8833_handle_t *handle, int16_t *level) |
| get the interrupt hysteresis level | |
| uint8_t | amg8833_interrupt_level_convert_to_register (amg8833_handle_t *handle, float temp, int16_t *reg) |
| convert the interrupt level to the register raw data | |
| uint8_t | amg8833_interrupt_level_convert_to_data (amg8833_handle_t *handle, int16_t reg, float *temp) |
| convert the register raw data to the interrupt level | |
amg8833 basic driver modules
| typedef struct amg8833_handle_s amg8833_handle_t |
amg8833 handle structure definition
| typedef struct amg8833_info_s amg8833_info_t |
amg8833 information structure definition
| enum amg8833_address_t |
amg8833 address enumeration definition
| Enumerator | |
|---|---|
| AMG8833_ADDRESS_0 | ad select pin connected to the GND |
| AMG8833_ADDRESS_1 | ad select pin connected to the VCC |
Definition at line 62 of file driver_amg8833.h.
amg8833 average mode enumeration definition
| Enumerator | |
|---|---|
| AMG8833_AVERAGE_MODE_ONCE | once moving average output mode |
| AMG8833_AVERAGE_MODE_TWICE | twice moving average output mode |
Definition at line 128 of file driver_amg8833.h.
| enum amg8833_bool_t |
amg8833 bool enumeration definition
| Enumerator | |
|---|---|
| AMG8833_BOOL_FALSE | false |
| AMG8833_BOOL_TRUE | true |
Definition at line 71 of file driver_amg8833.h.
| enum amg8833_frame_rate_t |
amg8833 frame rate enumeration definition
| Enumerator | |
|---|---|
| AMG8833_FRAME_RATE_10_FPS | 10 fps |
| AMG8833_FRAME_RATE_1_FPS | 1 fps |
Definition at line 100 of file driver_amg8833.h.
amg8833 interrupt mode enumeration definition
| Enumerator | |
|---|---|
| AMG8833_INTERRUPT_MODE_DIFFERENCE | difference interrupt mode |
| AMG8833_INTERRUPT_MODE_ABSOLUTE | absolute value interrupt mode |
Definition at line 109 of file driver_amg8833.h.
| enum amg8833_mode_t |
amg8833 mode enumeration definition
| Enumerator | |
|---|---|
| AMG8833_MODE_NORMAL | normal mode |
| AMG8833_MODE_SLEEP | sleep mode |
| AMG8833_MODE_STAND_BY_60S | stand-by 60s mode |
| AMG8833_MODE_STAND_BY_10S | stand-by 10s mode |
Definition at line 80 of file driver_amg8833.h.
| enum amg8833_reset_type_t |
amg8833 reset type enumeration definition
| Enumerator | |
|---|---|
| AMG8833_RESET_TYPE_FLAG | flag reset type |
| AMG8833_RESET_TYPE_INIT | initial reset type |
Definition at line 91 of file driver_amg8833.h.
| enum amg8833_status_t |
amg8833 status enumeration definition
| Enumerator | |
|---|---|
| AMG8833_STATUS_OVF_THS | thermistor temperature output overflow |
| AMG8833_STATUS_OVF_IRS | temperature output overflow |
| AMG8833_STATUS_INTF | interrupt outbreak |
Definition at line 118 of file driver_amg8833.h.
| uint8_t amg8833_clear_status | ( | amg8833_handle_t * | handle, |
| amg8833_status_t | status ) |
clear the interrupt status
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | status | interrupt status |
Definition at line 781 of file driver_amg8833.c.
| uint8_t amg8833_deinit | ( | amg8833_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an amg8833 handle structure |
Definition at line 278 of file driver_amg8833.c.
| uint8_t amg8833_get_addr_pin | ( | amg8833_handle_t * | handle, |
| amg8833_address_t * | addr_pin ) |
get the iic address pin
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *addr_pin | pointer to an address pin buffer |
Definition at line 156 of file driver_amg8833.c.
| uint8_t amg8833_get_average_mode | ( | amg8833_handle_t * | handle, |
| amg8833_average_mode_t * | mode ) |
get the average_mode
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *mode | pointer to an average mode buffer |
Definition at line 863 of file driver_amg8833.c.
| uint8_t amg8833_get_frame_rate | ( | amg8833_handle_t * | handle, |
| amg8833_frame_rate_t * | rate ) |
get the frame rate
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *rate | pointer to a frame rate buffer |
Definition at line 543 of file driver_amg8833.c.
| uint8_t amg8833_get_interrupt | ( | amg8833_handle_t * | handle, |
| amg8833_bool_t * | enable ) |
get the interrupt status
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 707 of file driver_amg8833.c.
| uint8_t amg8833_get_interrupt_high_level | ( | amg8833_handle_t * | handle, |
| int16_t * | level ) |
get the interrupt high level
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *level | pointer to an interrupt high level buffer |
Definition at line 945 of file driver_amg8833.c.
| uint8_t amg8833_get_interrupt_hysteresis_level | ( | amg8833_handle_t * | handle, |
| int16_t * | level ) |
get the interrupt hysteresis level
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *level | pointer to an interrupt hysteresis level buffer |
Definition at line 1139 of file driver_amg8833.c.
| uint8_t amg8833_get_interrupt_low_level | ( | amg8833_handle_t * | handle, |
| int16_t * | level ) |
get the interrupt low level
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *level | pointer to an interrupt low level buffer |
Definition at line 1042 of file driver_amg8833.c.
| uint8_t amg8833_get_interrupt_mode | ( | amg8833_handle_t * | handle, |
| amg8833_interrupt_mode_t * | mode ) |
get the interrupt mode
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *mode | pointer to an interrupt mode buffer |
Definition at line 625 of file driver_amg8833.c.
| uint8_t amg8833_get_interrupt_table | ( | amg8833_handle_t * | handle, |
| uint8_t | table[8][1] ) |
get the interrupt table
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | **table | pointer to an interrupt table buffer |
Definition at line 1357 of file driver_amg8833.c.
| uint8_t amg8833_get_mode | ( | amg8833_handle_t * | handle, |
| amg8833_mode_t * | mode ) |
get the mode
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *mode | pointer to a chip mode buffer |
Definition at line 424 of file driver_amg8833.c.
| uint8_t amg8833_get_status | ( | amg8833_handle_t * | handle, |
| uint8_t * | status ) |
get the status
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 744 of file driver_amg8833.c.
| uint8_t amg8833_info | ( | amg8833_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an amg8833 info structure |
Definition at line 1492 of file driver_amg8833.c.
| uint8_t amg8833_init | ( | amg8833_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an amg8833 handle structure |
Definition at line 179 of file driver_amg8833.c.
| uint8_t amg8833_interrupt_level_convert_to_data | ( | amg8833_handle_t * | handle, |
| int16_t | reg, | ||
| float * | temp ) |
convert the register raw data to the interrupt level
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | reg | register raw data |
| [out] | *temp | pointer to a temperature buffer |
Definition at line 1218 of file driver_amg8833.c.
| uint8_t amg8833_interrupt_level_convert_to_register | ( | amg8833_handle_t * | handle, |
| float | temp, | ||
| int16_t * | reg ) |
convert the interrupt level to the register raw data
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | temp | temperature |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1191 of file driver_amg8833.c.
| uint8_t amg8833_irq_handler | ( | amg8833_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to an amg8833 handle structure |
Definition at line 324 of file driver_amg8833.c.
| uint8_t amg8833_read_temperature | ( | amg8833_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | temp ) |
read the temperature
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *temp | pointer to a converted temperature buffer |
Definition at line 1246 of file driver_amg8833.c.
| uint8_t amg8833_read_temperature_array | ( | amg8833_handle_t * | handle, |
| int16_t | raw[8][8], | ||
| float | temp[8][8] ) |
read the temperature array
| [in] | *handle | pointer to an amg8833 handle structure |
| [out] | **raw | pointer to a raw temperature buffer |
| [out] | **temp | pointer to a converted temperature buffer |
Definition at line 1304 of file driver_amg8833.c.
| uint8_t amg8833_reset | ( | amg8833_handle_t * | handle, |
| amg8833_reset_type_t | type ) |
reset the chip
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | type | reset type |
Definition at line 461 of file driver_amg8833.c.
| uint8_t amg8833_set_addr_pin | ( | amg8833_handle_t * | handle, |
| amg8833_address_t | addr_pin ) |
set the iic address pin
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | addr_pin | address pin |
Definition at line 135 of file driver_amg8833.c.
| uint8_t amg8833_set_average_mode | ( | amg8833_handle_t * | handle, |
| amg8833_average_mode_t | mode ) |
set the average_mode
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | mode | average mode |
Definition at line 818 of file driver_amg8833.c.
| uint8_t amg8833_set_frame_rate | ( | amg8833_handle_t * | handle, |
| amg8833_frame_rate_t | rate ) |
set the frame rate
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | rate | frame rate |
Definition at line 498 of file driver_amg8833.c.
| uint8_t amg8833_set_interrupt | ( | amg8833_handle_t * | handle, |
| amg8833_bool_t | enable ) |
enable or disable the interrupt
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | enable | bool value |
Definition at line 662 of file driver_amg8833.c.
| uint8_t amg8833_set_interrupt_high_level | ( | amg8833_handle_t * | handle, |
| int16_t | level ) |
set the interrupt high level
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | level | interrupt high level |
Definition at line 900 of file driver_amg8833.c.
| uint8_t amg8833_set_interrupt_hysteresis_level | ( | amg8833_handle_t * | handle, |
| int16_t | level ) |
set the interrupt hysteresis level
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | level | interrupt hysteresis level |
Definition at line 1094 of file driver_amg8833.c.
| uint8_t amg8833_set_interrupt_low_level | ( | amg8833_handle_t * | handle, |
| int16_t | level ) |
set the interrupt low level
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | level | interrupt low level |
Definition at line 997 of file driver_amg8833.c.
| uint8_t amg8833_set_interrupt_mode | ( | amg8833_handle_t * | handle, |
| amg8833_interrupt_mode_t | mode ) |
set the interrupt mode
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | mode | interrupt mode |
Definition at line 580 of file driver_amg8833.c.
| uint8_t amg8833_set_mode | ( | amg8833_handle_t * | handle, |
| amg8833_mode_t | mode ) |
set the mode
| [in] | *handle | pointer to an amg8833 handle structure |
| [in] | mode | chip mode |
Definition at line 387 of file driver_amg8833.c.