waveform
2.0.0.0
|
Functions | |
void | waveform_cfg_setup (waveform_cfg_t *cfg) |
Config Object Initialization function. More... | |
WAVEFORM_RETVAL | waveform_init (waveform_t *ctx, waveform_cfg_t *cfg) |
Initialization function. More... | |
void | waveform_digipot_dec (waveform_t *ctx) |
Decrement function. More... | |
void | waveform_digipot_inc (waveform_t *ctx) |
Increment function. More... | |
void | waveform_write_reg (waveform_t *ctx, uint16_t reg_setting) |
Registry finction. More... | |
void | waveform_write_freqency (waveform_t *ctx, uint32_t f) |
Freqency function. More... | |
void | waveform_sine_output (waveform_t *ctx, uint32_t f) |
Sinusoide output function. More... | |
void | waveform_triangle_output (waveform_t *ctx, uint32_t f) |
Triangle output function. More... | |
void | waveform_square_output (waveform_t *ctx, uint32_t f) |
Square output function. More... | |
void waveform_cfg_setup | ( | waveform_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void waveform_digipot_dec | ( | waveform_t * | ctx | ) |
Decrement function.
ctx | Click object. |
@description This function
void waveform_digipot_inc | ( | waveform_t * | ctx | ) |
Increment function.
ctx | Click object. |
WAVEFORM_RETVAL waveform_init | ( | waveform_t * | ctx, |
waveform_cfg_t * | cfg | ||
) |
Initialization function.
waveform | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void waveform_sine_output | ( | waveform_t * | ctx, |
uint32_t | f | ||
) |
Sinusoide output function.
ctx | Click object. |
f | Output a sine wave and set the frequency by passing the raw 24bit value. |
@description This functin outputs sinusodie signal.
void waveform_square_output | ( | waveform_t * | ctx, |
uint32_t | f | ||
) |
Square output function.
ctx | Click object. |
f | Output a sine wave and set the frequency by passing the raw 24bit value. |
@description This functin outputs square signal.
void waveform_triangle_output | ( | waveform_t * | ctx, |
uint32_t | f | ||
) |
Triangle output function.
ctx | Click object. |
f | Output a sine wave and set the frequency by passing the raw 24bit value. |
@description This functin outputs triangle signal.
void waveform_write_freqency | ( | waveform_t * | ctx, |
uint32_t | f | ||
) |
Freqency function.
ctx | Click object. |
f | Output a sine wave and set the frequency by passing the raw 24bit value. |
@description This function returns freqency.
void waveform_write_reg | ( | waveform_t * | ctx, |
uint16_t | reg_setting | ||
) |
Registry finction.
ctx | Click object. |
reg_setting | Generic SPI function for writing 16bit values to the waveform generating chip. |