rng 2.0.0.0
|
This file contains API for RNG Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | rng_t |
Click ctx object definition. More... | |
struct | rng_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | rng_cfg_setup (rng_cfg_t *cfg) |
Config Object Initialization function. | |
RNG_RETVAL | rng_init (rng_t *ctx, rng_cfg_t *cfg) |
Initialization function. | |
void | rng_default_cfg (rng_t *ctx) |
Click Default Configuration function. | |
void | rng_write_function (rng_t *ctx, uint8_t reg, uint16_t reg_data) |
Write function. | |
uint16_t | rng_read_function (rng_t *ctx, uint8_t reg) |
Read function. | |
void | rng_reset_device (rng_t *ctx) |
Function used for reset device. | |
void | rng_set_config (rng_t *ctx, uint16_t conf_data) |
Function used for set configuration. | |
void | rng_set_vref (rng_t *ctx, uint16_t vref_mv) |
Function used for set vref in millivolts. | |
float | rng_get_voltage (rng_t *ctx) |
Function used for get voltage. | |
void | rng_set_threshold (rng_t *ctx, uint8_t thresh_reg, uint16_t thresh_data) |
Function used for set threshold values. | |
This file contains API for RNG Click driver.