![]() |
LibDriver MCP9600
|
mcp9600 base driver modules More...
Data Structures | |
| struct | mcp9600_handle_s |
| mcp9600 handle structure definition More... | |
| struct | mcp9600_info_s |
| mcp9600 information structure definition More... | |
Typedefs | |
| typedef struct mcp9600_handle_s | mcp9600_handle_t |
| mcp9600 handle structure definition | |
| typedef struct mcp9600_info_s | mcp9600_info_t |
| mcp9600 information structure definition | |
Functions | |
| uint8_t | mcp9600_info (mcp9600_info_t *info) |
| get chip information | |
| uint8_t | mcp9600_set_addr_pin (mcp9600_handle_t *handle, mcp9600_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | mcp9600_get_addr_pin (mcp9600_handle_t *handle, mcp9600_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | mcp9600_init (mcp9600_handle_t *handle) |
| initialize the chip | |
| uint8_t | mcp9600_deinit (mcp9600_handle_t *handle) |
| close the chip | |
| uint8_t | mcp9600_start_continuous_read (mcp9600_handle_t *handle) |
| start reading data | |
| uint8_t | mcp9600_stop_continuous_read (mcp9600_handle_t *handle) |
| stop reading data | |
| uint8_t | mcp9600_continuous_read (mcp9600_handle_t *handle, int16_t *hot_raw, float *hot_s, int16_t *delta_raw, float *delta_s, int16_t *cold_raw, float *cold_s) |
| read data continuously | |
| uint8_t | mcp9600_single_read (mcp9600_handle_t *handle, int16_t *hot_raw, float *hot_s, int16_t *delta_raw, float *delta_s, int16_t *cold_raw, float *cold_s) |
| read data once | |
| uint8_t | mcp9600_get_hot_junction_temperature (mcp9600_handle_t *handle, int16_t *raw, float *s) |
| get the hot junction temperature | |
| uint8_t | mcp9600_get_junction_thermocouple_delta (mcp9600_handle_t *handle, int16_t *raw, float *s) |
| get the junction thermocouple delta | |
| uint8_t | mcp9600_get_cold_junction_temperature (mcp9600_handle_t *handle, int16_t *raw, float *s) |
| get the cold junction temperature | |
| uint8_t | mcp9600_get_raw_adc (mcp9600_handle_t *handle, int32_t *raw, double *uv) |
| get the raw adc | |
| uint8_t | mcp9600_set_filter_coefficient (mcp9600_handle_t *handle, mcp9600_filter_coefficient_t coefficient) |
| set the filter coefficient | |
| uint8_t | mcp9600_get_filter_coefficient (mcp9600_handle_t *handle, mcp9600_filter_coefficient_t *coefficient) |
| get the filter coefficient | |
| uint8_t | mcp9600_set_thermocouple_type (mcp9600_handle_t *handle, mcp9600_thermocouple_type_t type) |
| set the thermocouple type | |
| uint8_t | mcp9600_get_thermocouple_type (mcp9600_handle_t *handle, mcp9600_thermocouple_type_t *type) |
| get the thermocouple type | |
| uint8_t | mcp9600_get_status_burst_complete_flag (mcp9600_handle_t *handle, mcp9600_bool_t *status) |
| get the burst complete status flag | |
| uint8_t | mcp9600_clear_status_burst_complete_flag (mcp9600_handle_t *handle) |
| clear the burst complete status flag | |
| uint8_t | mcp9600_get_status_temperature_update_flag (mcp9600_handle_t *handle, mcp9600_bool_t *status) |
| get the temperature update status flag | |
| uint8_t | mcp9600_clear_status_temperature_update_flag (mcp9600_handle_t *handle) |
| clear the temperature update status flag | |
| uint8_t | mcp9600_get_status_input_range (mcp9600_handle_t *handle, mcp9600_input_range_t *range) |
| get the input range status | |
| uint8_t | mcp9600_get_alert_status (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_alert_status_t *status) |
| get the alert status | |
| uint8_t | mcp9600_set_cold_junction_resolution (mcp9600_handle_t *handle, mcp9600_cold_junction_resolution_t resolution) |
| set the cold junction resolution | |
| uint8_t | mcp9600_get_cold_junction_resolution (mcp9600_handle_t *handle, mcp9600_cold_junction_resolution_t *resolution) |
| get the cold junction resolution | |
| uint8_t | mcp9600_set_adc_resolution (mcp9600_handle_t *handle, mcp9600_adc_resolution_t resolution) |
| set the adc resolution | |
| uint8_t | mcp9600_get_adc_resolution (mcp9600_handle_t *handle, mcp9600_adc_resolution_t *resolution) |
| get the adc resolution | |
| uint8_t | mcp9600_set_burst_mode_sample (mcp9600_handle_t *handle, mcp9600_burst_mode_sample_t sample) |
| set the burst mode sample | |
| uint8_t | mcp9600_get_burst_mode_sample (mcp9600_handle_t *handle, mcp9600_burst_mode_sample_t *sample) |
| get the burst mode sample | |
| uint8_t | mcp9600_set_mode (mcp9600_handle_t *handle, mcp9600_mode_t mode) |
| set the mode | |
| uint8_t | mcp9600_get_mode (mcp9600_handle_t *handle, mcp9600_mode_t *mode) |
| get the mode | |
| uint8_t | mcp9600_alert_limit_convert_to_register (mcp9600_handle_t *handle, float c, int16_t *reg) |
| convert the alert limit to the register raw data | |
| uint8_t | mcp9600_alert_limit_convert_to_data (mcp9600_handle_t *handle, int16_t reg, float *c) |
| convert the register raw data to the alert limit | |
| uint8_t | mcp9600_set_alert_limit (mcp9600_handle_t *handle, mcp9600_alert_t alert, int16_t reg) |
| set the alert limit | |
| uint8_t | mcp9600_get_alert_limit (mcp9600_handle_t *handle, mcp9600_alert_t alert, int16_t *reg) |
| get the alert limit | |
| uint8_t | mcp9600_alert_hysteresis_convert_to_register (mcp9600_handle_t *handle, float c, uint8_t *reg) |
| convert the alert hysteresis to the register raw data | |
| uint8_t | mcp9600_alert_hysteresis_convert_to_data (mcp9600_handle_t *handle, uint8_t reg, float *c) |
| convert the register raw data to the alert hysteresis | |
| uint8_t | mcp9600_set_alert_hysteresis (mcp9600_handle_t *handle, mcp9600_alert_t alert, uint8_t reg) |
| set the alert hysteresis | |
| uint8_t | mcp9600_get_alert_hysteresis (mcp9600_handle_t *handle, mcp9600_alert_t alert, uint8_t *reg) |
| get the alert hysteresis | |
| uint8_t | mcp9600_clear_interrupt (mcp9600_handle_t *handle, mcp9600_alert_t alert) |
| clear the interrupt flag | |
| uint8_t | mcp9600_get_interrupt (mcp9600_handle_t *handle, mcp9600_alert_t alert, uint8_t *status) |
| get the interrupt flag | |
| uint8_t | mcp9600_set_temperature_maintain_detect (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_temperature_maintain_detect_t maintain_detect) |
| set the temperature maintain detect | |
| uint8_t | mcp9600_get_temperature_maintain_detect (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_temperature_maintain_detect_t *maintain_detect) |
| get the temperature maintain detect | |
| uint8_t | mcp9600_set_detect_edge (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_detect_edge_t edge) |
| set the detect edge | |
| uint8_t | mcp9600_get_detect_edge (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_detect_edge_t *edge) |
| get the detect edge | |
| uint8_t | mcp9600_set_active_level (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_active_level_t level) |
| set the active level | |
| uint8_t | mcp9600_get_active_level (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_active_level_t *level) |
| get the active level | |
| uint8_t | mcp9600_set_interrupt_mode (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_interrupt_mode_t mode) |
| set the interrupt mode | |
| uint8_t | mcp9600_get_interrupt_mode (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_interrupt_mode_t *mode) |
| get the interrupt mode | |
| uint8_t | mcp9600_set_alert_output (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_bool_t enable) |
| set the alert output | |
| uint8_t | mcp9600_get_alert_output (mcp9600_handle_t *handle, mcp9600_alert_t alert, mcp9600_bool_t *enable) |
| get the alert output | |
| uint8_t | mcp9600_get_device_id_revision (mcp9600_handle_t *handle, uint8_t *id, uint8_t *revision) |
| get the device id and revision | |
mcp9600 base driver modules
| typedef struct mcp9600_handle_s mcp9600_handle_t |
mcp9600 handle structure definition
| typedef struct mcp9600_info_s mcp9600_info_t |
mcp9600 information structure definition
mcp9600 active level enumeration definition
| Enumerator | |
|---|---|
| MCP9600_ACTIVE_LEVEL_LOW | active low |
| MCP9600_ACTIVE_LEVEL_HIGH | active high |
Definition at line 202 of file driver_mcp9600.h.
mcp9600 adc resolution enumeration definition
Definition at line 80 of file driver_mcp9600.h.
| enum mcp9600_address_t |
mcp9600 address enumeration definition
| Enumerator | |
|---|---|
| MCP9600_ADDRESS_0 | addr pin connected to the GND |
| MCP9600_ADDRESS_1 | addr pin connected to the VCC |
Definition at line 62 of file driver_mcp9600.h.
mcp9600 alert status enumeration definition
| Enumerator | |
|---|---|
| MCP9600_ALERT_STATUS_LESS | less than threshold |
| MCP9600_ALERT_STATUS_OVER | over threshold |
Definition at line 157 of file driver_mcp9600.h.
| enum mcp9600_alert_t |
mcp9600 alert enumeration definition
| Enumerator | |
|---|---|
| MCP9600_ALERT_1 | alert 1 |
| MCP9600_ALERT_2 | alert 2 |
| MCP9600_ALERT_3 | alert 3 |
| MCP9600_ALERT_4 | alert 4 |
Definition at line 146 of file driver_mcp9600.h.
| enum mcp9600_bool_t |
mcp9600 bool enumeration definition
| Enumerator | |
|---|---|
| MCP9600_BOOL_FALSE | false |
| MCP9600_BOOL_TRUE | true |
Definition at line 175 of file driver_mcp9600.h.
mcp9600 burst mode sample enumeration definition
Definition at line 91 of file driver_mcp9600.h.
mcp9600 cold junction resolution enumeration definition
| Enumerator | |
|---|---|
| MCP9600_COLD_JUNCTION_RESOLUTION_0P0625 | 0.0625C |
| MCP9600_COLD_JUNCTION_RESOLUTION_0P25 | 0.25C |
Definition at line 71 of file driver_mcp9600.h.
mcp9600 detect edge enumeration definition
| Enumerator | |
|---|---|
| MCP9600_DETECT_EDGE_RISING | rising detect |
| MCP9600_DETECT_EDGE_FALLING | falling detect |
Definition at line 193 of file driver_mcp9600.h.
mcp9600 filter coefficient enumeration definition
Definition at line 131 of file driver_mcp9600.h.
mcp9600 input range enumeration definition
| Enumerator | |
|---|---|
| MCP9600_INPUT_RANGE_EXCEEDS | exceeds |
| MCP9600_INPUT_RANGE_WITHIN | within |
Definition at line 166 of file driver_mcp9600.h.
mcp9600 interrupt mode enumeration definition
| Enumerator | |
|---|---|
| MCP9600_INTERRUPT_MODE_COMPARATOR | comparator mode |
| MCP9600_INTERRUPT_MODE_INTERRUPT | interrupt mode |
Definition at line 211 of file driver_mcp9600.h.
| enum mcp9600_mode_t |
mcp9600 mode enumeration definition
| Enumerator | |
|---|---|
| MCP9600_MODE_NORMAL | normal mode |
| MCP9600_MODE_SHUTDOWN | shutdown mode |
| MCP9600_MODE_BURST | burst mode |
Definition at line 106 of file driver_mcp9600.h.
mcp9600 temperature maintain detect enumeration definition
| Enumerator | |
|---|---|
| MCP9600_TEMPERATURE_MAINTAIN_DETECT_COLD_JUNCTION | cold junction |
| MCP9600_TEMPERATURE_MAINTAIN_DETECT_HOT_JUNCTION | hot junction |
Definition at line 184 of file driver_mcp9600.h.
mcp9600 thermocouple type enumeration definition
Definition at line 116 of file driver_mcp9600.h.
| uint8_t mcp9600_alert_hysteresis_convert_to_data | ( | mcp9600_handle_t * | handle, |
| uint8_t | reg, | ||
| float * | c ) |
convert the register raw data to the alert hysteresis
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | reg | register raw data |
| [out] | *c | pointer to an alert hysteresis buffer |
Definition at line 1850 of file driver_mcp9600.c.
| uint8_t mcp9600_alert_hysteresis_convert_to_register | ( | mcp9600_handle_t * | handle, |
| float | c, | ||
| uint8_t * | reg ) |
convert the alert hysteresis to the register raw data
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | c | alert hysteresis |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1823 of file driver_mcp9600.c.
| uint8_t mcp9600_alert_limit_convert_to_data | ( | mcp9600_handle_t * | handle, |
| int16_t | reg, | ||
| float * | c ) |
convert the register raw data to the alert limit
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | reg | register raw data |
| [out] | *c | pointer to an alert limit buffer |
Definition at line 1629 of file driver_mcp9600.c.
| uint8_t mcp9600_alert_limit_convert_to_register | ( | mcp9600_handle_t * | handle, |
| float | c, | ||
| int16_t * | reg ) |
convert the alert limit to the register raw data
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | c | alert limit |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1602 of file driver_mcp9600.c.
| uint8_t mcp9600_clear_interrupt | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert ) |
clear the interrupt flag
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
Definition at line 2044 of file driver_mcp9600.c.
| uint8_t mcp9600_clear_status_burst_complete_flag | ( | mcp9600_handle_t * | handle | ) |
clear the burst complete status flag
| [in] | *handle | pointer to an mcp9600 handle structure |
Definition at line 671 of file driver_mcp9600.c.
| uint8_t mcp9600_clear_status_temperature_update_flag | ( | mcp9600_handle_t * | handle | ) |
clear the temperature update status flag
| [in] | *handle | pointer to an mcp9600 handle structure |
Definition at line 752 of file driver_mcp9600.c.
| uint8_t mcp9600_continuous_read | ( | mcp9600_handle_t * | handle, |
| int16_t * | hot_raw, | ||
| float * | hot_s, | ||
| int16_t * | delta_raw, | ||
| float * | delta_s, | ||
| int16_t * | cold_raw, | ||
| float * | cold_s ) |
read data continuously
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *hot_raw | pointer to a raw hot temperature buffer |
| [out] | *hot_s | pointer to a converted hot temperature buffer |
| [out] | *delta_raw | pointer to a raw delta temperature buffer |
| [out] | *delta_s | pointer to a converted delta temperature buffer |
| [out] | *cold_raw | pointer to a raw cold temperature buffer |
| [out] | *cold_s | pointer to a converted cold temperature buffer |
Definition at line 422 of file driver_mcp9600.c.
| uint8_t mcp9600_deinit | ( | mcp9600_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an mcp9600 handle structure |
Definition at line 272 of file driver_mcp9600.c.
| uint8_t mcp9600_get_active_level | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_active_level_t * | level ) |
get the active level
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *level | pointer to an active level buffer |
Definition at line 2659 of file driver_mcp9600.c.
| uint8_t mcp9600_get_adc_resolution | ( | mcp9600_handle_t * | handle, |
| mcp9600_adc_resolution_t * | resolution ) |
get the adc resolution
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *resolution | pointer to an adc resolution buffer |
Definition at line 1230 of file driver_mcp9600.c.
| uint8_t mcp9600_get_addr_pin | ( | mcp9600_handle_t * | handle, |
| mcp9600_address_t * | addr_pin ) |
get the iic address pin
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *addr_pin | pointer to an address pin buffer |
Definition at line 166 of file driver_mcp9600.c.
| uint8_t mcp9600_get_alert_hysteresis | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| uint8_t * | reg ) |
get the alert hysteresis
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *reg | pointer to a register value buffer |
Definition at line 1962 of file driver_mcp9600.c.
| uint8_t mcp9600_get_alert_limit | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| int16_t * | reg ) |
get the alert limit
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *reg | pointer to a register value buffer |
Definition at line 1742 of file driver_mcp9600.c.
| uint8_t mcp9600_get_alert_output | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_bool_t * | enable ) |
get the alert output
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3007 of file driver_mcp9600.c.
| uint8_t mcp9600_get_alert_status | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_alert_status_t * | status ) |
get the alert status
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *status | pointer to an alert status buffer |
Definition at line 835 of file driver_mcp9600.c.
| uint8_t mcp9600_get_burst_mode_sample | ( | mcp9600_handle_t * | handle, |
| mcp9600_burst_mode_sample_t * | sample ) |
get the burst mode sample
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *sample | pointer to a burst mode sample buffer |
Definition at line 1314 of file driver_mcp9600.c.
| uint8_t mcp9600_get_cold_junction_resolution | ( | mcp9600_handle_t * | handle, |
| mcp9600_cold_junction_resolution_t * | resolution ) |
get the cold junction resolution
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *resolution | pointer to a cold junction resolution buffer |
Definition at line 1146 of file driver_mcp9600.c.
| uint8_t mcp9600_get_cold_junction_temperature | ( | mcp9600_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | s ) |
get the cold junction temperature
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *s | pointer to a converted temperature buffer |
Definition at line 954 of file driver_mcp9600.c.
| uint8_t mcp9600_get_detect_edge | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_detect_edge_t * | edge ) |
get the detect edge
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *edge | pointer to a detect edge buffer |
Definition at line 2485 of file driver_mcp9600.c.
| uint8_t mcp9600_get_device_id_revision | ( | mcp9600_handle_t * | handle, |
| uint8_t * | id, | ||
| uint8_t * | revision ) |
get the device id and revision
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *id | pointer to an id buffer |
| [out] | *revision | pointer to a revision buffer |
Definition at line 3089 of file driver_mcp9600.c.
| uint8_t mcp9600_get_filter_coefficient | ( | mcp9600_handle_t * | handle, |
| mcp9600_filter_coefficient_t * | coefficient ) |
get the filter coefficient
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *coefficient | pointer to a filter coefficient buffer |
Definition at line 1565 of file driver_mcp9600.c.
| uint8_t mcp9600_get_hot_junction_temperature | ( | mcp9600_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | s ) |
get the hot junction temperature
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *s | pointer to a converted temperature buffer |
Definition at line 874 of file driver_mcp9600.c.
| uint8_t mcp9600_get_interrupt | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| uint8_t * | status ) |
get the interrupt flag
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *status | pointer to a status buffer |
Definition at line 2135 of file driver_mcp9600.c.
| uint8_t mcp9600_get_interrupt_mode | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_interrupt_mode_t * | mode ) |
get the interrupt mode
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *mode | pointer to an interrupt mode buffer |
Definition at line 2833 of file driver_mcp9600.c.
| uint8_t mcp9600_get_junction_thermocouple_delta | ( | mcp9600_handle_t * | handle, |
| int16_t * | raw, | ||
| float * | s ) |
get the junction thermocouple delta
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *s | pointer to a converted temperature buffer |
Definition at line 914 of file driver_mcp9600.c.
| uint8_t mcp9600_get_mode | ( | mcp9600_handle_t * | handle, |
| mcp9600_mode_t * | mode ) |
get the mode
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *mode | pointer to a chip mode buffer |
Definition at line 1398 of file driver_mcp9600.c.
| uint8_t mcp9600_get_raw_adc | ( | mcp9600_handle_t * | handle, |
| int32_t * | raw, | ||
| double * | uv ) |
get the raw adc
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *raw | pointer to a raw adc buffer |
| [out] | *uv | pointer to a converted voltage buffer |
Definition at line 1010 of file driver_mcp9600.c.
| uint8_t mcp9600_get_status_burst_complete_flag | ( | mcp9600_handle_t * | handle, |
| mcp9600_bool_t * | status ) |
get the burst complete status flag
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 634 of file driver_mcp9600.c.
| uint8_t mcp9600_get_status_input_range | ( | mcp9600_handle_t * | handle, |
| mcp9600_input_range_t * | range ) |
get the input range status
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *range | pointer to an input range buffer |
Definition at line 796 of file driver_mcp9600.c.
| uint8_t mcp9600_get_status_temperature_update_flag | ( | mcp9600_handle_t * | handle, |
| mcp9600_bool_t * | status ) |
get the temperature update status flag
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 715 of file driver_mcp9600.c.
| uint8_t mcp9600_get_temperature_maintain_detect | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_temperature_maintain_detect_t * | maintain_detect ) |
get the temperature maintain detect
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [out] | *maintain_detect | pointer to a temperature maintain detect buffer |
Definition at line 2310 of file driver_mcp9600.c.
| uint8_t mcp9600_get_thermocouple_type | ( | mcp9600_handle_t * | handle, |
| mcp9600_thermocouple_type_t * | type ) |
get the thermocouple type
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *type | pointer to a thermocouple type buffer |
Definition at line 1482 of file driver_mcp9600.c.
| uint8_t mcp9600_info | ( | mcp9600_info_t * | info | ) |
get chip information
| [out] | *info | pointer to an mcp9600 info structure |
Definition at line 3178 of file driver_mcp9600.c.
| uint8_t mcp9600_init | ( | mcp9600_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an mcp9600 handle structure |
Definition at line 189 of file driver_mcp9600.c.
| uint8_t mcp9600_set_active_level | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_active_level_t | level ) |
set the active level
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | level | active level |
Definition at line 2568 of file driver_mcp9600.c.
| uint8_t mcp9600_set_adc_resolution | ( | mcp9600_handle_t * | handle, |
| mcp9600_adc_resolution_t | resolution ) |
set the adc resolution
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | resolution | adc resolution |
Definition at line 1184 of file driver_mcp9600.c.
| uint8_t mcp9600_set_addr_pin | ( | mcp9600_handle_t * | handle, |
| mcp9600_address_t | addr_pin ) |
set the iic address pin
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | addr_pin | address pin |
Definition at line 145 of file driver_mcp9600.c.
| uint8_t mcp9600_set_alert_hysteresis | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| uint8_t | reg ) |
set the alert hysteresis
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | reg | register value |
Definition at line 1879 of file driver_mcp9600.c.
| uint8_t mcp9600_set_alert_limit | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| int16_t | reg ) |
set the alert limit
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | reg | register value |
Definition at line 1658 of file driver_mcp9600.c.
| uint8_t mcp9600_set_alert_output | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_bool_t | enable ) |
set the alert output
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | enable | bool value |
Definition at line 2916 of file driver_mcp9600.c.
| uint8_t mcp9600_set_burst_mode_sample | ( | mcp9600_handle_t * | handle, |
| mcp9600_burst_mode_sample_t | sample ) |
set the burst mode sample
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | sample | burst mode sample |
Definition at line 1268 of file driver_mcp9600.c.
| uint8_t mcp9600_set_cold_junction_resolution | ( | mcp9600_handle_t * | handle, |
| mcp9600_cold_junction_resolution_t | resolution ) |
set the cold junction resolution
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | resolution | cold junction resolution |
Definition at line 1100 of file driver_mcp9600.c.
| uint8_t mcp9600_set_detect_edge | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_detect_edge_t | edge ) |
set the detect edge
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | edge | detect edge |
Definition at line 2394 of file driver_mcp9600.c.
| uint8_t mcp9600_set_filter_coefficient | ( | mcp9600_handle_t * | handle, |
| mcp9600_filter_coefficient_t | coefficient ) |
set the filter coefficient
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | coefficient | filter coefficient |
Definition at line 1519 of file driver_mcp9600.c.
| uint8_t mcp9600_set_interrupt_mode | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_interrupt_mode_t | mode ) |
set the interrupt mode
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | mode | interrupt mode |
Definition at line 2742 of file driver_mcp9600.c.
| uint8_t mcp9600_set_mode | ( | mcp9600_handle_t * | handle, |
| mcp9600_mode_t | mode ) |
set the mode
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | mode | chip mode |
Definition at line 1352 of file driver_mcp9600.c.
| uint8_t mcp9600_set_temperature_maintain_detect | ( | mcp9600_handle_t * | handle, |
| mcp9600_alert_t | alert, | ||
| mcp9600_temperature_maintain_detect_t | maintain_detect ) |
set the temperature maintain detect
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | alert | alert number |
| [in] | maintain_detect | temperature maintain detect |
Definition at line 2218 of file driver_mcp9600.c.
| uint8_t mcp9600_set_thermocouple_type | ( | mcp9600_handle_t * | handle, |
| mcp9600_thermocouple_type_t | type ) |
set the thermocouple type
| [in] | *handle | pointer to an mcp9600 handle structure |
| [in] | type | thermocouple type |
Definition at line 1436 of file driver_mcp9600.c.
| uint8_t mcp9600_single_read | ( | mcp9600_handle_t * | handle, |
| int16_t * | hot_raw, | ||
| float * | hot_s, | ||
| int16_t * | delta_raw, | ||
| float * | delta_s, | ||
| int16_t * | cold_raw, | ||
| float * | cold_s ) |
read data once
| [in] | *handle | pointer to an mcp9600 handle structure |
| [out] | *hot_raw | pointer to a raw hot temperature buffer |
| [out] | *hot_s | pointer to a converted hot temperature buffer |
| [out] | *delta_raw | pointer to a raw delta temperature buffer |
| [out] | *delta_s | pointer to a converted delta temperature buffer |
| [out] | *cold_raw | pointer to a raw cold temperature buffer |
| [out] | *cold_s | pointer to a converted cold temperature buffer |
Definition at line 502 of file driver_mcp9600.c.
| uint8_t mcp9600_start_continuous_read | ( | mcp9600_handle_t * | handle | ) |
start reading data
| [in] | *handle | pointer to an mcp9600 handle structure |
Definition at line 325 of file driver_mcp9600.c.
| uint8_t mcp9600_stop_continuous_read | ( | mcp9600_handle_t * | handle | ) |
stop reading data
| [in] | *handle | pointer to an mcp9600 handle structure |
Definition at line 370 of file driver_mcp9600.c.