daq3 2.0.0.0
|
API for configuring and manipulating DAQ 3 Click driver. More...
Topics | |
DAQ 3 Registers List | |
List of registers of DAQ 3 Click driver. | |
DAQ 3 Registers Settings | |
Settings for registers of DAQ 3 Click driver. | |
DAQ 3 MikroBUS Map | |
MikroBUS pin mapping of DAQ 3 Click driver. | |
Reg_cmd_default | |
Mode | |
Pd_ref | |
Pd_amp | |
Functions | |
void | daq3_cfg_setup (daq3_cfg_t *cfg) |
DAQ 3 configuration object setup function. | |
err_t | daq3_init (daq3_t *ctx, daq3_cfg_t *cfg) |
DAQ 3 initialization function. | |
void | daq3_default_cfg (daq3_t *ctx) |
DAQ 3 default configuration function. | |
void | daq3_set_pwr_mode (daq3_t *ctx, uint8_t mode) |
DAQ 3 set power mode function. | |
void | daq3_set_pwr_down_ref_buf (daq3_t *ctx, uint8_t pd_ref) |
DAQ 3 set power reference buffer function. | |
void | daq3_set_pwr_down_amp (daq3_t *ctx, uint8_t pd_amp) |
DAQ 3 set power Amplifier function. | |
uint8_t | daq3_get_sdo (daq3_t *ctx) |
DAQ 3 get state of SDO function. | |
err_t | daq3_generic_write (daq3_t *ctx, uint8_t reg, uint8_t data_in) |
DAQ 3 data writing function. | |
err_t | daq3_generic_read (daq3_t *ctx, uint8_t reg, uint8_t *data_out) |
DAQ 3 data reading function. | |
err_t | daq3_set_reg_cfg (daq3_t *ctx, daq3_reg_cfg_t cfg_data) |
DAQ 3 set command register function. | |
err_t | daq3_get_reg_cfg (daq3_t *ctx, daq3_reg_cfg_t *cfg_data) |
DAQ 3 get command register function. | |
int32_t | daq3_get_conversion_result (daq3_t *ctx, daq3_reg_cfg_t cfg_data) |
DAQ 3 get conversion result function. | |
float | daq3_get_voltage (daq3_t *ctx) |
DAQ 3 get voltage function. | |
API for configuring and manipulating DAQ 3 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void daq3_cfg_setup | ( | daq3_cfg_t * | cfg | ) |
DAQ 3 configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See daq3_cfg_t object definition for detailed explanation. |
void daq3_default_cfg | ( | daq3_t * | ctx | ) |
DAQ 3 default configuration function.
This function executes a default configuration of DAQ 3 click board.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
err_t daq3_generic_read | ( | daq3_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_out ) |
DAQ 3 data reading function.
This function reads a desired number of data bytes starting from the selected register by using SPI serial interface.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[out] | data_out | : Output read data. |
0
- Success, -1
- Error.err_t daq3_generic_write | ( | daq3_t * | ctx, |
uint8_t | reg, | ||
uint8_t | data_in ) |
DAQ 3 data writing function.
This function writes a desired number of data bytes starting from the selected register by using SPI serial interface.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | reg | : Start register address. |
[in] | data_in | : Data to be written. |
0
- Success, -1
- Error.int32_t daq3_get_conversion_result | ( | daq3_t * | ctx, |
daq3_reg_cfg_t | cfg_data ) |
DAQ 3 get conversion result function.
This function reads a conversion result data of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | cfg_data | : Structure where gesture data be stored. |
See #err_t definition for detailed explanation.
err_t daq3_get_reg_cfg | ( | daq3_t * | ctx, |
daq3_reg_cfg_t * | cfg_data ) |
DAQ 3 get command register function.
This function get command register status of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | cfg_data | : Pointer to the memory location where data be stored. |
0
- Success, -1
- Error.uint8_t daq3_get_sdo | ( | daq3_t * | ctx | ) |
DAQ 3 get state of SDO function.
This function get State of SDO on Power-Up of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[out] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
0x00
- Low, 0x01
- High.float daq3_get_voltage | ( | daq3_t * | ctx | ) |
DAQ 3 get voltage function.
This function reads a conversion result data and calculate voltage [ mV ] of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
See #err_t definition for detailed explanation.
err_t daq3_init | ( | daq3_t * | ctx, |
daq3_cfg_t * | cfg ) |
DAQ 3 initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See daq3_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void daq3_set_pwr_down_amp | ( | daq3_t * | ctx, |
uint8_t | pd_amp ) |
DAQ 3 set power Amplifier function.
This function set power Amplifier of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[out] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | pd_amp | Amplifier:
|
void daq3_set_pwr_down_ref_buf | ( | daq3_t * | ctx, |
uint8_t | pd_ref ) |
DAQ 3 set power reference buffer function.
This function set power reference buffer of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[out] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | pd_ref | Reference buffer:
|
void daq3_set_pwr_mode | ( | daq3_t * | ctx, |
uint8_t | mode ) |
DAQ 3 set power mode function.
This function set power mode for the fully differential ADC Driver of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[out] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | mode | Power mode:
|
err_t daq3_set_reg_cfg | ( | daq3_t * | ctx, |
daq3_reg_cfg_t | cfg_data ) |
DAQ 3 set command register function.
This function set command register status of ADAQ4003 18-Bit, 2 MSPS, µModule Data Acquisition Solution on DAQ 3 click board.
[in] | ctx | : Click context object. See daq3_t object definition for detailed explanation. |
[in] | cfg_data | : Structure where gesture data be stored. |
0
- Success, -1
- Error.