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


Macros | |
| #define | MCP4725__RESET 0x06U |
| General call reset command. | |
| #define | MCP4725__WAKEUP 0x09U |
| General call wake up command. | |
Functions | |
| FctERR | MCP4725_Write_Command (MCP4725_t *const pCpnt, const uint16_t val) |
| Write Command to MCP4725 peripheral. | |
| FctERR | MCP4725_Reset (I2C_HandleTypeDef *const hi2c) |
| General call reset function for MCP4725. | |
| FctERR | MCP4725_WakeUp (I2C_HandleTypeDef *const hi2c) |
| General call wake up function for MCP4725. | |
| FctERR | MCP4725_Read_DAC (MCP4725_t *const pCpnt, uint16_t *const val) |
| Read DAC value. | |
| FctERR | MCP4725_Read_State (MCP4725_t *const pCpnt, bool *const state) |
| Read DAC state. | |
MCP4725 Driver extensions.
MCP4725: 12-Bit Digital-to-Analog Converter with EEPROM Memory
| #define MCP4725__RESET 0x06U |
General call reset command.
| #define MCP4725__WAKEUP 0x09U |
General call wake up command.
| FctERR MCP4725_Read_DAC | ( | MCP4725_t *const | pCpnt, |
| uint16_t *const | val ) |
Read DAC value.
| [in] | pCpnt | - Pointer to MCP4725 component |
| [in] | val | - pointer to DAC value to read to |

| FctERR MCP4725_Read_State | ( | MCP4725_t *const | pCpnt, |
| bool *const | state ) |
Read DAC state.
| [in] | pCpnt | - Pointer to MCP4725 component |
| [in] | state | - pointer to state to read to (0 Ready, 1 Busy) |

|
inline |
General call reset function for MCP4725.
| [in] | hi2c | - pointer to general call I2C instance |

|
inline |
General call wake up function for MCP4725.
| [in] | hi2c | - pointer to general call I2C instance |

| FctERR MCP4725_Write_Command | ( | MCP4725_t *const | pCpnt, |
| const uint16_t | val ) |
Write Command to MCP4725 peripheral.
| [in] | pCpnt | - Pointer to MCP4725 component |
| [in] | val | - Raw DAC value for MCP4725 to write |

