digipot9 2.0.0.0
|
This file contains API for DIGI POT 9 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 | digipot9_t |
DIGI POT 9 Click context object. More... | |
struct | digipot9_cfg_t |
DIGI POT 9 Click configuration object. More... | |
Enumerations | |
enum | digipot9_return_value_t { DIGIPOT9_OK = 0 , DIGIPOT9_ERROR = -1 } |
DIGI POT 9 Click return value data. More... | |
Functions | |
void | digipot9_cfg_setup (digipot9_cfg_t *cfg) |
DIGI POT 9 configuration object setup function. | |
err_t | digipot9_init (digipot9_t *ctx, digipot9_cfg_t *cfg) |
DIGI POT 9 initialization function. | |
void | digipot9_default_cfg (digipot9_t *ctx) |
DIGI POT 9 default configuration function. | |
err_t | digipot9_generic_write (digipot9_t *ctx, uint8_t command, uint8_t address, uint16_t data_in) |
DIGI POT 9 data writing function. | |
err_t | digipot9_generic_read (digipot9_t *ctx, uint8_t command, uint8_t address, uint16_t *data_out) |
DIGI POT 9 data reading function. | |
err_t | digipot9_set_wiper_1 (digipot9_t *ctx, uint16_t data_in) |
DIGI POT 9 Set wiper 1 function. | |
err_t | digipot9_set_wiper_2 (digipot9_t *ctx, uint16_t data_in) |
DIGI POT 9 Set wiper 2 function. | |
void | digipot9_set_pr_pin (digipot9_t *ctx, uint8_t state) |
DIGI POT 9 Set PR pin function. | |
void | digipot9_set_wp_pin (digipot9_t *ctx, uint8_t state) |
DIGI POT 9 Set WP pin function. | |
uint8_t | digipot9_get_rdy_pin (digipot9_t *ctx) |
DIGI POT 9 get RDY pin function. | |
err_t | digipot9_write_user_data (digipot9_t *ctx, uint8_t address, uint16_t data_in) |
DIGI POT 9 write user data function. | |
err_t | digipot9_read_user_data (digipot9_t *ctx, uint8_t address, uint16_t *data_out) |
DIGI POT 9 read user data function. | |
This file contains API for DIGI POT 9 Click Driver.