LibDriver MCP4725
Loading...
Searching...
No Matches
mcp4725_handle_s Struct Reference

mcp4725 handle structure definition More...

#include <driver_mcp4725.h>

Data Fields

uint8_t iic_addr
uint8_t(* iic_init )(void)
uint8_t(* iic_deinit )(void)
uint8_t(* iic_read_cmd )(uint8_t addr, uint8_t *buf, uint16_t len)
uint8_t(* iic_write_cmd )(uint8_t addr, uint8_t *buf, uint16_t len)
void(* delay_ms )(uint32_t ms)
void(* debug_print )(const char *const fmt,...)
uint8_t inited
uint8_t mode
uint8_t power_mode
float ref_voltage

Detailed Description

mcp4725 handle structure definition

Definition at line 92 of file driver_mcp4725.h.

Field Documentation

◆ debug_print

void(* debug_print) (const char *const fmt,...)

point to a debug_print function address

Definition at line 100 of file driver_mcp4725.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 99 of file driver_mcp4725.h.

◆ iic_addr

uint8_t iic_addr

iic device address

Definition at line 94 of file driver_mcp4725.h.

◆ iic_deinit

uint8_t(* iic_deinit) (void)

point to an iic_deinit function address

Definition at line 96 of file driver_mcp4725.h.

◆ iic_init

uint8_t(* iic_init) (void)

point to an iic_init function address

Definition at line 95 of file driver_mcp4725.h.

◆ iic_read_cmd

uint8_t(* iic_read_cmd) (uint8_t addr, uint8_t *buf, uint16_t len)

point to an iic_read function address

Definition at line 97 of file driver_mcp4725.h.

◆ iic_write_cmd

uint8_t(* iic_write_cmd) (uint8_t addr, uint8_t *buf, uint16_t len)

point to an iic_write function address

Definition at line 98 of file driver_mcp4725.h.

◆ inited

uint8_t inited

inited flag

Definition at line 101 of file driver_mcp4725.h.

◆ mode

uint8_t mode

chip mode

Definition at line 102 of file driver_mcp4725.h.

◆ power_mode

uint8_t power_mode

power mode

Definition at line 103 of file driver_mcp4725.h.

◆ ref_voltage

float ref_voltage

reference voltage

Definition at line 104 of file driver_mcp4725.h.


The documentation for this struct was generated from the following file: