|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
MCP9808 Driver procedures. More...


Data Structures | |
| struct | MCP9808_t |
| MCP9808 user interface struct. More... | |
Macros | |
| #define | MCP9808_MANUFACTURER_ID 0x0054U |
| MCP9808 Manufacturer ID to check against. | |
| #define | MCP9808_CHIP_ID 0x0400U |
| MCP9808 Chip ID to check against. | |
Enumerations | |
| enum | MCP9808_alert { MCP9808__ALERT_HIGH = 0U , MCP9808__ALERT_LOW , MCP9808__ALERT_CRIT } |
| Alerts enum of MCP9808. More... | |
Functions | |
| FctERR | MCP9808_Init_Sequence (MCP9808_t *const pCpnt) |
| Initialization Sequence of the MCP9808 peripheral. | |
| FctERR | MCP9808_Set_AlertTemp (MCP9808_t *const pCpnt, const float temp, const MCP9808_alert alt) |
| Set the high/low/crit Alert temperature. | |
| FctERR | MCP9808_Get_AlertTemp (MCP9808_t *const pCpnt, float *temp, MCP9808_alert alt) |
| Get the high/low/crit Alert temperature. | |
| FctERR | MCP9808_Get_Temperature (MCP9808_t *const pCpnt, float *temp) |
| Get the temperature. | |
| FctERR | MCP9808_handler (MCP9808_t *const pCpnt) |
| Handler for MCP9808 peripheral. | |
| FctERR | MCP9808_handler_it (MCP9808_t *const pCpnt) |
| Handler for MCP9808 peripheral GPIO interrupt. | |
| FctERR | MCP9808_handler_all (void) |
| Handler for all MCP9808 peripherals. | |
| FctERR | MCP9808_handler_it_all (void) |
| Handler for all MCP9808 peripherals GPIO interrupt. | |
Variables | |
| MCP9808_t | MCP9808 [I2C_MCP9808_NB] |
| MCP9808 User structure. | |
MCP9808 Driver procedures.
MCP9808: +/-0.5C Maximum Accuracy Digital Temperature Sensor
| #define MCP9808_CHIP_ID 0x0400U |
MCP9808 Chip ID to check against.
| #define MCP9808_MANUFACTURER_ID 0x0054U |
MCP9808 Manufacturer ID to check against.
| enum MCP9808_alert |
| FctERR MCP9808_Get_AlertTemp | ( | MCP9808_t *const | pCpnt, |
| float * | temp, | ||
| MCP9808_alert | alt ) |
Get the high/low/crit Alert temperature.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | temp | - pointer to temperature to read to (in Celsius degrees) |
| [in] | alt | - Alert type |


| FctERR MCP9808_Get_Temperature | ( | MCP9808_t *const | pCpnt, |
| float * | temp ) |
Get the temperature.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | temp | - pointer to temperature to read to (in Celsius degrees) |


| FctERR MCP9808_handler | ( | MCP9808_t *const | pCpnt | ) |
Handler for MCP9808 peripheral.
| [in] | pCpnt | - Pointer to MCP9808 component |


| FctERR MCP9808_handler_all | ( | void | ) |
Handler for all MCP9808 peripherals.

| FctERR MCP9808_handler_it | ( | MCP9808_t *const | pCpnt | ) |
Handler for MCP9808 peripheral GPIO interrupt.
| [in] | pCpnt | - Pointer to MCP9808 component |


| FctERR MCP9808_handler_it_all | ( | void | ) |
Handler for all MCP9808 peripherals GPIO interrupt.

| FctERR MCP9808_Init_Sequence | ( | MCP9808_t *const | pCpnt | ) |
Initialization Sequence of the MCP9808 peripheral.
| [in] | pCpnt | - Pointer to MCP9808 component |


| FctERR MCP9808_Set_AlertTemp | ( | MCP9808_t *const | pCpnt, |
| const float | temp, | ||
| const MCP9808_alert | alt ) |
Set the high/low/crit Alert temperature.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | temp | - temperature (in Celsius degrees) |
| [in] | alt | - Alert type |

|
extern |
MCP9808 User structure.