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

MCP4725 Driver procedures. More...

#include "MCP4725.h"
Include dependency graph for MCP4725_proc.c:

Functions

FctERR MCP4725_Init_Sequence (MCP4725_t *const pCpnt)
 Initialization Sequence of the MCP4725 peripheral.
 
FctERR MCP4725_Set_Mode (MCP4725_t *const pCpnt, const MCP4725_cmd mode)
 Set mode of the MCP4725 peripheral.
 
FctERR MCP4725_Set_PowerDown (MCP4725_t *const pCpnt, const MCP4725_pd pd)
 Set Power down mode of the MCP4725 peripheral.
 
FctERR MCP4725_Set_VRef (MCP4725_t *const pCpnt, float vref)
 Set VRef for MCP4725 peripheral.
 
FctERR MCP4725_Set_Val (MCP4725_t *const pCpnt, const uint16_t val)
 Write Raw DAC value to MCP4725 peripheral.
 
FctERR MCP4725_Set_Volts (MCP4725_t *const pCpnt, const float volts)
 Write DAC value (in Volts) to MCP4725 peripheral.
 

Variables

MCP4725_t MCP4725 [I2C_MCP4725_NB] = { 0 }
 MCP4725 User structure.
 

Detailed Description

MCP4725 Driver procedures.

Author
SMFSW

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

Function Documentation

◆ MCP4725_Init_Sequence()

FctERR MCP4725_Init_Sequence ( MCP4725_t *const pCpnt)

Initialization Sequence of the MCP4725 peripheral.

Weak Functions
MCP4725 Init sequence may be user implemented if custom initialization sequence needed
Parameters
[in]pCpnt- Pointer to MCP4725 component
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MCP4725_Set_Mode()

FctERR MCP4725_Set_Mode ( MCP4725_t *const pCpnt,
const MCP4725_cmd mode )

Set mode of the MCP4725 peripheral.

Parameters
[in]pCpnt- Pointer to MCP4725 component
[in]mode- operating mode of MCP4725
Returns
FctERR - error code
Here is the caller graph for this function:

◆ MCP4725_Set_PowerDown()

FctERR MCP4725_Set_PowerDown ( MCP4725_t *const pCpnt,
const MCP4725_pd pd )

Set Power down mode of the MCP4725 peripheral.

Parameters
[in]pCpnt- Pointer to MCP4725 component
[in]pd- Power down mode of MCP4725
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MCP4725_Set_Val()

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

Write Raw DAC value to MCP4725 peripheral.

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

◆ MCP4725_Set_Volts()

FctERR MCP4725_Set_Volts ( MCP4725_t *const pCpnt,
const float volts )

Write DAC value (in Volts) to MCP4725 peripheral.

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

◆ MCP4725_Set_VRef()

FctERR MCP4725_Set_VRef ( MCP4725_t *const pCpnt,
const float vref )

Set VRef for MCP4725 peripheral.

Parameters
[in]pCpnt- Pointer to MCP4725 component
[in]vref- Voltage reference of MCP4725
Returns
FctERR - error code
Here is the caller graph for this function:

Variable Documentation

◆ MCP4725

MCP4725_t MCP4725[I2C_MCP4725_NB] = { 0 }

MCP4725 User structure.