thunder 2.0.0.0
|
This file contains API for Thunder 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 | thunder_t |
Click ctx object definition. More... | |
struct | thunder_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | thunder_cfg_setup (thunder_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | thunder_init (thunder_t *ctx, thunder_cfg_t *cfg) |
Initialization function. | |
void | thunder_default_cfg (thunder_t *ctx) |
Click Default Configuration function. | |
err_t | thunder_generic_write (thunder_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len) |
Generic write function. | |
err_t | thunder_generic_read (thunder_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len) |
Generic read function. | |
err_t | thunder_write_reg (thunder_t *ctx, uint8_t reg, uint8_t data_in) |
Write reg function. | |
err_t | thunder_read_reg (thunder_t *ctx, uint8_t reg, uint8_t *data_out) |
Read reg function. | |
void | thunder_send_command (thunder_t *ctx, uint8_t command) |
Command Send function. | |
uint8_t | thunder_check_int (thunder_t *ctx) |
Interrupt Check function. | |
void | thunder_get_storm_info (thunder_t *ctx, uint32_t *energy_out, uint8_t *distance_out) |
Storm Information Get function. | |
uint8_t | thunder_check_irq_pin (thunder_t *ctx) |
IRQ Pin Check function. | |
This file contains API for Thunder Click driver.