hodcap 2.1.0.0
|
This file contains API for HOD CAP Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | hodcap_t |
HOD CAP Click context object. More... | |
struct | hodcap_cfg_t |
HOD CAP Click configuration object. More... | |
struct | hodcap_status_t |
HOD CAP Click status object. More... | |
Enumerations | |
enum | hodcap_return_value_t { HODCAP_OK = 0 , HODCAP_ERROR = -1 } |
HOD CAP Click return value data. More... | |
Functions | |
void | hodcap_cfg_setup (hodcap_cfg_t *cfg) |
HOD CAP configuration object setup function. | |
err_t | hodcap_init (hodcap_t *ctx, hodcap_cfg_t *cfg) |
HOD CAP initialization function. | |
err_t | hodcap_default_cfg (hodcap_t *ctx) |
HOD CAP default configuration function. | |
err_t | hodcap_generic_write (hodcap_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
HOD CAP data writing function. | |
err_t | hodcap_generic_read (hodcap_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
HOD CAP data reading function. | |
err_t | hodcap_write_reg (hodcap_t *ctx, uint8_t reg, uint16_t data_in) |
HOD CAP write register function. | |
err_t | hodcap_read_reg (hodcap_t *ctx, uint8_t reg, uint16_t *data_out) |
HOD CAP read register function. | |
err_t | hodcap_get_sensor_id (hodcap_t *ctx, uint16_t *sensor_id) |
HOD CAP gets sensor ID function. | |
err_t | hodcap_get_status (hodcap_t *ctx, hodcap_status_t *status) |
HOD CAP gets sensor status function. | |
err_t | hodcap_check_adc_data_ready (hodcap_t *ctx, uint16_t *data_ready) |
HOD CAP check ADC data ready function. | |
err_t | hodcap_set_adc_op_mode (hodcap_t *ctx, uint16_t adc_op_mode) |
HOD CAP sets the ADC operation mode function. | |
err_t | hodcap_mux_channel_selection (hodcap_t *ctx, uint8_t sen_pos) |
HOD CAP MUX channel selection function. | |
err_t | hodcap_get_i_q_data (hodcap_t *ctx, uint16_t *i_data, uint16_t *q_data) |
HOD CAP gets the I and Q data function. | |
err_t | hodcap_wait_adc_data_ready (hodcap_t *ctx) |
HOD CAP wait ADC data ready function. | |
void | hodcap_set_clk_state (hodcap_t *ctx, uint8_t clk_state) |
HOD CAP set CLK pin state function. | |
This file contains API for HOD CAP Click Driver.