waveform 2.0.0.0
|
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. | |
void waveform_cfg_setup | ( | waveform_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void waveform_digipot_dec | ( | waveform_t * | ctx | ) |
Decrement function.
ctx | Click object. |
This function decreases amplitude.
void waveform_digipot_inc | ( | waveform_t * | ctx | ) |
Increment function.
ctx | Click object. |
This function increases amplitude.
err_t waveform_init | ( | waveform_t * | ctx, |
waveform_cfg_t * | cfg ) |
Initialization function.
waveform | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void waveform_sine_output | ( | waveform_t * | ctx, |
uint32_t | freq ) |
Sinusoide output function.
ctx | Click object. |
freq | Set the frequency by passing the raw 24bit value. |
This function outputs sinusoide signal.
void waveform_square_output | ( | waveform_t * | ctx, |
uint32_t | freq ) |
Square output function.
ctx | Click object. |
freq | Set the frequency by passing the raw 24bit value. |
This function outputs square signal.
void waveform_triangle_output | ( | waveform_t * | ctx, |
uint32_t | freq ) |
Triangle output function.
ctx | Click object. |
freq | Set the frequency by passing the raw 24bit value. |
This function outputs triangle signal.
void waveform_write_frequency | ( | waveform_t * | ctx, |
uint32_t | freq ) |
Frequency function.
ctx | Click object. |
freq | Set the frequency by passing the raw 24bit value. |
This function sets frequency.
void waveform_write_reg | ( | waveform_t * | ctx, |
uint16_t | reg_setting ) |
Registry function.
ctx | Click object. |
reg_setting | Generic SPI function for writing 16bit values to the waveform generating chip. |