rng 2.0.0.0
|
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. | |
void rng_cfg_setup | ( | rng_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void rng_default_cfg | ( | rng_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Rng click.
float rng_get_voltage | ( | rng_t * | ctx | ) |
Function used for get voltage.
ctx | Click object. |
@description This function gets voltage in millivolts.
RNG_RETVAL rng_init | ( | rng_t * | ctx, |
rng_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint16_t rng_read_function | ( | rng_t * | ctx, |
uint8_t | reg ) |
Read function.
ctx | Click object. |
reg | Register address. |
@description This function reads data from the desired register.
void rng_reset_device | ( | rng_t * | ctx | ) |
Function used for reset device.
ctx | Click object. |
@description This function resets device.
void rng_set_config | ( | rng_t * | ctx, |
uint16_t | conf_data ) |
Function used for set configuration.
ctx | Click object. |
conf_data | Configuration data. |
@description This function sets configuration.
void rng_set_threshold | ( | rng_t * | ctx, |
uint8_t | thresh_reg, | ||
uint16_t | thresh_data ) |
Function used for set threshold values.
ctx | Click object. |
thresh_reg | Register adress. |
thresh_data | Data to be write. |
@description Used by the comparator stored in two 16-bit registers.
void rng_set_vref | ( | rng_t * | ctx, |
uint16_t | vref_mv ) |
Function used for set vref in millivolts.
ctx | Click object. |
vref_mv | Sets reference voltage in millivolts. |
@description This function sets desired vref.
void rng_write_function | ( | rng_t * | ctx, |
uint8_t | reg, | ||
uint16_t | reg_data ) |
Write function.
ctx | Click object. |
reg | Register address. |
reg_data | Data to be written. |
@description This function writes data to the desired register.