waveform 2.0.0.0
|
This file contains API for Waveform Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | waveform_t |
Click ctx object definition. More... | |
struct | waveform_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | WAVEFORM_MAP_MIKROBUS(cfg, mikrobus) |
#define | WAVEFORM_OK 0 |
#define | WAVEFORM_ERROR -1 |
#define | WAVEFORM_CR_B28_BITMASK 0x2000 |
#define | WAVEFORM_CR_HLB_BITMASK 0x1000 |
#define | WAVEFORM_CR_FSELECT_BITMASK 0x0800 |
#define | WAVEFORM_CR_PSELECT_BITMASK 0x0400 |
#define | WAVEFORM_CR_RESET_BITMASK 0x0100 |
#define | WAVEFORM_CR_SLEEP1_BITMASK 0x0080 |
#define | WAVEFORM_CR_SLEEP12_BITMASK 0x0040 |
#define | WAVEFORM_CR_OPBITEN_BITMASK 0x0020 |
#define | WAVEFORM_CR_DIV2_BITMASK 0x0008 |
#define | WAVEFORM_CR_MODE_BITMASK 0x0002 |
#define | WAVEFORM_SINE_OUT 0x01 |
#define | WAVEFORM_TRIANGLE_OUT 0x02 |
#define | WAVEFORM_SQUARE_OUT 0x03 |
#define | WAVEFORM_OSC_FREQUENCY 25000000ul |
#define | WAVEFORM_FREQ_RESOLUTION 0x0FFFFFFFul |
Functions | |
void | waveform_cfg_setup (waveform_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | waveform_init (waveform_t *ctx, waveform_cfg_t *cfg) |
Initialization function. | |
void | waveform_digipot_dec (waveform_t *ctx) |
Decrement function. | |
void | waveform_digipot_inc (waveform_t *ctx) |
Increment function. | |
void | waveform_write_reg (waveform_t *ctx, uint16_t reg_setting) |
Registry function. | |
void | waveform_write_frequency (waveform_t *ctx, uint32_t freq) |
Frequency function. | |
void | waveform_sine_output (waveform_t *ctx, uint32_t freq) |
Sinusoide output function. | |
void | waveform_triangle_output (waveform_t *ctx, uint32_t freq) |
Triangle output function. | |
void | waveform_square_output (waveform_t *ctx, uint32_t freq) |
Square output function. | |
This file contains API for Waveform Click driver.