c420mat2 2.1.0.0
|
This file contains API for 4-20mA T 2 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 | c420mat2_t |
4-20mA T 2 Click context object. More... | |
struct | c420mat2_cfg_t |
4-20mA T 2 Click configuration object. More... | |
struct | c420mat2_status_t |
4-20mA T 2 Click status object. More... | |
Enumerations | |
enum | c420mat2_return_value_t { C420MAT2_OK = 0 , C420MAT2_ERROR = -1 } |
4-20mA T 2 Click return value data. More... | |
enum | c420mat2_status_value_t { C420MAT2_STATUS_OK = 0 , C420MAT2_STATUS_ERROR = 1 } |
4-20mA T 2 Click error status value data. More... | |
Functions | |
void | c420mat2_cfg_setup (c420mat2_cfg_t *cfg) |
4-20mA T 2 configuration object setup function. | |
err_t | c420mat2_init (c420mat2_t *ctx, c420mat2_cfg_t *cfg) |
4-20mA T 2 initialization function. | |
err_t | c420mat2_default_cfg (c420mat2_t *ctx) |
4-20mA T 2 default configuration function. | |
err_t | c420mat2_write_data (c420mat2_t *ctx, uint8_t reg, uint16_t data_in) |
4-20mA T 2 data writing function. | |
err_t | c420mat2_read_data (c420mat2_t *ctx, uint8_t cmd, uint16_t *data_out) |
4-20mA T 2 data reading function. | |
err_t | c420mat2_protected_write (c420mat2_t *ctx, uint8_t reg, uint16_t data_in) |
4-20mA T 2 protected data writing function. | |
err_t | c420mat2_sw_reset (c420mat2_t *ctx) |
4-20mA T 2 soft reset function. | |
err_t | c420mat2_set_dac_data (c420mat2_t *ctx, uint16_t dac_output_code) |
4-20mA T 2 set DAC data function. | |
err_t | c420mat2_set_lower_limit (c420mat2_t *ctx, float lower_limit_ma) |
4-20mA T 2 set lower limit function. | |
err_t | c420mat2_set_upper_limit (c420mat2_t *ctx, float upper_limit_ma) |
4-20mA T 2 set upper limit function. | |
err_t | c420mat2_set_output_current (c420mat2_t *ctx, float current_ma) |
4-20mA T 2 set output current function. | |
err_t | c420mat2_get_status (c420mat2_t *ctx, c420mat2_status_t *status) |
4-20mA T 2 set status function. | |
uint8_t | c420mat2_get_err_pin (c420mat2_t *ctx) |
4-20mA T 2 get error flag pin state function. | |
This file contains API for 4-20mA T 2 Click Driver.