rtd 2.0.0.0
|
This file contains API for RTD 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 | rtd_t |
Click ctx object definition. More... | |
struct | rtd_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | RTD_MAP_MIKROBUS(cfg, mikrobus) |
#define | RTD_OK 0 |
#define | RTD_ERROR -1 |
#define | RTD_REF_RESISTANCE_470 470 |
#define | RTD_CONFIGURATION 0x00 |
#define | RTD_RTD_MSB 0x01 |
#define | RTD_RTD_LSB 0x02 |
#define | RTD_HI_FLT_THRHLD_MSB 0x03 |
#define | RTD_HI_FLT_THRHLD_LSB 0x04 |
#define | RTD_LO_FLT_THRHLD_MSB 0x05 |
#define | RTD_LO_FLT_THRHLD_LSB 0x06 |
#define | RTD_FLT_STATUS 0x07 |
#define | RTD_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | RTD_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
Functions | |
void | rtd_cfg_setup (rtd_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | rtd_init (rtd_t *ctx, rtd_cfg_t *cfg) |
Initialization function. | |
void | rtd_write_register (rtd_t *ctx, uint8_t reg_address, uint8_t write_data) |
Write to Register function. | |
uint8_t | rtd_read_register (rtd_t *ctx, uint8_t reg_address) |
Read from Register function. | |
uint16_t | rtd_read_temperature (rtd_t *ctx) |
Read Temperature function. | |
float | rtd_convert_temperature (rtd_t *ctx, uint16_t input_data, uint16_t referent_resistance) |
Convert Temperature function. | |
This file contains API for RTD Click driver.