digivref 2.0.0.0
|
This file contains API for DigiVref Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | digivref_t |
Click ctx object definition. More... | |
struct | digivref_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | DIGIVREF_MAP_MIKROBUS(cfg, mikrobus) |
#define | DIGIVREF_RETVAL uint8_t |
#define | DIGIVREF_OK 0x00 |
#define | DIGIVREF_INIT_ERROR 0xFF |
#define | DIGIVREF_REF_VOLTAGE_4096mV 0xF0 |
#define | DIGIVREF_REF_VOLTAGE_3072mV 0xF2 |
#define | DIGIVREF_REF_VOLTAGE_2048mV 0xF4 |
#define | DIGIVREF_REF_VOLTAGE_1024mV 0xF6 |
Functions | |
void | digivref_cfg_setup (digivref_cfg_t *cfg) |
Config Object Initialization function. | |
DIGIVREF_RETVAL | digivref_init (digivref_t *ctx, digivref_cfg_t *cfg) |
Initialization function. | |
void | digivref_generic_transfer (digivref_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | digivref_set_output_voltage (digivref_t *ctx, uint8_t v_ref) |
Function for set reference output voltage. | |
This file contains API for DigiVref Click driver.