thunderemu 2.1.0.0
|
This file contains API for Thunder EMU 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 | thunderemu_t |
Thunder EMU Click context object. More... | |
struct | thunderemu_cfg_t |
Thunder EMU Click configuration object. More... | |
Macros | |
#define | THUNDEREMU_MODE_CLOSE 0 |
Thunder EMU mode setting. | |
#define | THUNDEREMU_MODE_MID 1 |
#define | THUNDEREMU_MODE_FAR 2 |
#define | THUNDEREMU_DAC_MODE_FAST_NORMAL 0x00 |
Thunder EMU dac mode setting. | |
#define | THUNDEREMU_DAC_MODE_FAST_PDOWN_1K 0x10 |
#define | THUNDEREMU_DAC_MODE_FAST_PDOWN_100K 0x20 |
#define | THUNDEREMU_DAC_MODE_FAST_PDOWN_500K 0x30 |
#define | THUNDEREMU_DAC_MODE_EEPROM_NORMAL 0x60 |
#define | THUNDEREMU_DAC_MODE_EEPROM_PDOWN_1K 0x62 |
#define | THUNDEREMU_DAC_MODE_EEPROM_PDOWN_100K 0x64 |
#define | THUNDEREMU_DAC_MODE_EEPROM_PDOWN_500K 0x66 |
#define | THUNDEREMU_DAC_OUT_MIN 0x0000 |
Thunder EMU DAC range setting. | |
#define | THUNDEREMU_DAC_OUT_MAX 0x0FFF |
#define | THUNDEREMU_DEVICE_ADDRESS_0 0x60 |
Thunder EMU device address setting. | |
#define | THUNDEREMU_DEVICE_ADDRESS_1 0x61 |
#define | THUNDEREMU_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | thunderemu_return_value_t { THUNDEREMU_OK = 0 , THUNDEREMU_ERROR = -1 } |
Thunder EMU Click return value data. More... | |
Functions | |
void | thunderemu_cfg_setup (thunderemu_cfg_t *cfg) |
Thunder EMU configuration object setup function. | |
err_t | thunderemu_init (thunderemu_t *ctx, thunderemu_cfg_t *cfg) |
Thunder EMU initialization function. | |
err_t | thunderemu_default_cfg (thunderemu_t *ctx) |
Thunder EMU default configuration function. | |
err_t | thunderemu_set_dac_output (thunderemu_t *ctx, uint8_t mode, uint16_t dac_data) |
Thunder EMU set dac output function. | |
err_t | thunderemu_generate_thunder (thunderemu_t *ctx, uint8_t mode) |
Thunder EMU generate thunder function. | |
void | thunderemu_led_enable (thunderemu_t *ctx) |
Thunder EMU led enable function. | |
void | thunderemu_led_disable (thunderemu_t *ctx) |
Thunder EMU led disable function. | |
uint8_t | thunderemu_get_close_pin (thunderemu_t *ctx) |
Thunder EMU get close pin function. | |
uint8_t | thunderemu_get_mid_pin (thunderemu_t *ctx) |
Thunder EMU get mid pin function. | |
uint8_t | thunderemu_get_far_pin (thunderemu_t *ctx) |
Thunder EMU get far pin function. | |
This file contains API for Thunder EMU Click Driver.