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


Data Structures | |
| union | uMCP9808_REG_MAP |
| Union of MCP9808 registry map. More... | |
Functions | |
| FctERR | MCP9808_Write_Config (MCP9808_t *const pCpnt, const uint16_t cfg) |
| Write MCP9808 configuration. | |
| FctERR | MCP9808_Shutdown (MCP9808_t *const pCpnt, const bool shutdown) |
| Write MCP9808 configuration. | |
| FctERR | MCP9808_Set_AlertHysteresis (MCP9808_t *const pCpnt, const MCP9808_hyst hys) |
| Set MCP9808 alert hysteresis. | |
| FctERR | MCP9808_Set_AlertType (MCP9808_t *const pCpnt, const bool comparator) |
| Set MCP9808 alert type. | |
| FctERR | MCP9808_Set_AlertOutput (MCP9808_t *const pCpnt, const bool en, const bool alt) |
| Set MCP9808 alert enable. | |
| FctERR | MCP9808_Set_AlertLock (MCP9808_t *const pCpnt, const MCP9808_alert alt, const bool lock) |
| Set MCP9808 alert lock. | |
| FctERR | MCP9808_Set_Resolution (MCP9808_t *const pCpnt, const MCP9808_res res) |
| Set MCP9808 Resolution. | |
| FctERR | MCP9808_Read_Config (MCP9808_t *const pCpnt, uint16_t *const cfg) |
| Get MCP9808 Configuration. | |
| FctERR | MCP9808_Get_Temperature_Raw (MCP9808_t *const pCpnt, uint16_t *const temp) |
| Get MCP9808 Configuration. | |
| FctERR | MCP9808_Get_Resolution (MCP9808_t *const pCpnt, MCP9808_res *const res) |
| Get MCP9808 Resolution. | |
| FctERR | MCP9808_Get_ManufacturerID (MCP9808_t *const pCpnt, uint16_t *const id) |
| Get MCP9808 Manufacturer ID. | |
| FctERR | MCP9808_Get_ChipID (MCP9808_t *const pCpnt, uint16_t *const id) |
| Get MCP9808 chip ID. | |
| void | MCP9808_Alert_GPIO_Init (MCP9808_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active) |
| Alert GPIO pin init for MCP9808. | |
| bool | MCP9808_Alert_GPIO_Get (const MCP9808_t *const pCpnt) |
| Change GPIO pin getter for MCP9808. | |
MCP9808 Driver extensions.
MCP9808: +/-0.5C Maximum Accuracy Digital Temperature Sensor
| bool MCP9808_Alert_GPIO_Get | ( | const MCP9808_t *const | pCpnt | ) |
Change GPIO pin getter for MCP9808.
| [in] | pCpnt | - Pointer to MCP9808 component |


| void MCP9808_Alert_GPIO_Init | ( | MCP9808_t *const | pCpnt, |
| GPIO_TypeDef *const | GPIOx, | ||
| const uint16_t | GPIO_Pin, | ||
| const GPIO_PinState | GPIO_Active ) |
Alert GPIO pin init for MCP9808.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | GPIOx | - Alert port |
| [in] | GPIO_Pin | - Alert pin |
| [in] | GPIO_Active | Alert pin active state |

|
inline |
Get MCP9808 chip ID.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | id | - pointer to chip ID result |


|
inline |
Get MCP9808 Manufacturer ID.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | id | - pointer to Manufacturer ID result |


| FctERR MCP9808_Get_Resolution | ( | MCP9808_t *const | pCpnt, |
| MCP9808_res *const | res ) |
Get MCP9808 Resolution.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | res | - pointer to Resolution to read to |

|
inline |
Get MCP9808 Configuration.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | temp | - pointer to Temperature value to read to |


|
inline |
Get MCP9808 Configuration.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in,out] | cfg | - pointer to Configuration value to read to |


| FctERR MCP9808_Set_AlertHysteresis | ( | MCP9808_t *const | pCpnt, |
| const MCP9808_hyst | hys ) |
Set MCP9808 alert hysteresis.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | hys | - Alert hysteresis |

| FctERR MCP9808_Set_AlertLock | ( | MCP9808_t *const | pCpnt, |
| const MCP9808_alert | alt, | ||
| const bool | lock ) |
Set MCP9808 alert lock.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | alt | - Alert type |
| [in] | lock | - 0 Unlocked, 1 Locked |

| FctERR MCP9808_Set_AlertOutput | ( | MCP9808_t *const | pCpnt, |
| const bool | en, | ||
| const bool | alt ) |
Set MCP9808 alert enable.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | en | - 0 Disabled, 1 Enabled |
| [in] | alt | - 0 Low, 1 High |

| FctERR MCP9808_Set_AlertType | ( | MCP9808_t *const | pCpnt, |
| const bool | comparator ) |
Set MCP9808 alert type.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | comparator | - 0 ???, 1 Comparator |

| FctERR MCP9808_Set_Resolution | ( | MCP9808_t *const | pCpnt, |
| const MCP9808_res | res ) |
Set MCP9808 Resolution.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | res | - Resolution for MCP9808 |


| FctERR MCP9808_Shutdown | ( | MCP9808_t *const | pCpnt, |
| const bool | shutdown ) |
Write MCP9808 configuration.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | shutdown | - 0 Normal operation, 1 Shutdown |


| FctERR MCP9808_Write_Config | ( | MCP9808_t *const | pCpnt, |
| const uint16_t | cfg ) |
Write MCP9808 configuration.
| [in] | pCpnt | - Pointer to MCP9808 component |
| [in] | cfg | - Configuration value |

