LibDriver MCP4725
Loading...
Searching...
No Matches
mcp4725 extern driver function

mcp4725 extern driver modules More...

Collaboration diagram for mcp4725 extern driver function:

Functions

uint8_t mcp4725_set_reg (mcp4725_handle_t *handle, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t mcp4725_get_reg (mcp4725_handle_t *handle, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

mcp4725 extern driver modules

Function Documentation

◆ mcp4725_get_reg()

uint8_t mcp4725_get_reg ( mcp4725_handle_t * handle,
uint8_t * buf,
uint16_t len )

get the chip register

Parameters
[in]*handlepointer to an mcp4725 handle structure
[out]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 562 of file driver_mcp4725.c.

◆ mcp4725_set_reg()

uint8_t mcp4725_set_reg ( mcp4725_handle_t * handle,
uint8_t * buf,
uint16_t len )

set the chip register

Parameters
[in]*handlepointer to an mcp4725 handle structure
[in]*bufpointer to a data buffer
[in]lendata buffer length
Returns
status code
  • 0 success
  • 1 write failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 536 of file driver_mcp4725.c.