I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
MCP4725_ex.h File Reference

MCP4725 Driver extensions. More...

#include "sarmfsw.h"
#include "MCP4725.h"
Include dependency graph for MCP4725_ex.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

MCP4725 Driver extensions.

Author
SMFSW

MCP4725: 12-Bit Digital-to-Analog Converter with EEPROM Memory

Macro Definition Documentation

◆ MCP4725__RESET

#define MCP4725__RESET   0x06U

General call reset command.

◆ MCP4725__WAKEUP

#define MCP4725__WAKEUP   0x09U

General call wake up command.

Function Documentation

◆ MCP4725_Read_DAC()

FctERR MCP4725_Read_DAC ( MCP4725_t *const pCpnt,
uint16_t *const val )

Read DAC value.

Parameters
[in]pCpnt- Pointer to MCP4725 component
[in]val- pointer to DAC value to read to
Returns
FctERR - error code
Here is the call graph for this function:

◆ MCP4725_Read_State()

FctERR MCP4725_Read_State ( MCP4725_t *const pCpnt,
bool *const state )

Read DAC state.

Parameters
[in]pCpnt- Pointer to MCP4725 component
[in]state- pointer to state to read to (0 Ready, 1 Busy)
Returns
FctERR - error code
Here is the call graph for this function:

◆ MCP4725_Reset()

FctERR MCP4725_Reset ( I2C_HandleTypeDef *const hi2c)
inline

General call reset function for MCP4725.

Parameters
[in]hi2c- pointer to general call I2C instance
Returns
FctERR - error code
Here is the call graph for this function:

◆ MCP4725_WakeUp()

FctERR MCP4725_WakeUp ( I2C_HandleTypeDef *const hi2c)
inline

General call wake up function for MCP4725.

Parameters
[in]hi2c- pointer to general call I2C instance
Returns
FctERR - error code
Here is the call graph for this function:

◆ MCP4725_Write_Command()

FctERR MCP4725_Write_Command ( MCP4725_t *const pCpnt,
const uint16_t val )

Write Command to MCP4725 peripheral.

Parameters
[in]pCpnt- Pointer to MCP4725 component
[in]val- Raw DAC value for MCP4725 to write
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function: