waveform
2.0.0.0
|
Waveform Click example. More...
Functions | |
uint32_t | waveform_aprox_freqcalculation (float freqency) |
void | output_waveform (uint32_t frequency_temp, uint8_t output_mode) |
void | frequency_increment (uint8_t output_mode) |
void | frequency_decrement (uint8_t output_mode) |
void | application_init () |
void | application_task () |
void | main () |
Waveform Click example.
This program outputs wave forms.
The application is composed of two sections :
Initialize the communication interface and configure the click board.
Predefined characters are inputed from the serial port. Depending on the character sent the signal frequency, waveform or amplitude will be changed.
uint32_t waveform_aprox_freqcalculation ( float freqency ) - This function is used to calculate the aproximate value that will be written to the frequency set register.
void output_waveform ( uint32_t frequency_temp, uint8_t output_mode ) - This function checks which wave form has been chosen and sets frequency of the wave.
void frequency_increment ( uint8_t output_mode ) - This function increases frequency of the wave.
void frequency_decrement ( uint8_t output_mode ) - This function reduces frequency of the wave.
void application_init | ( | ) |
void application_task | ( | ) |
void frequency_decrement | ( | uint8_t | output_mode | ) |
void frequency_increment | ( | uint8_t | output_mode | ) |
void main | ( | ) |
void output_waveform | ( | uint32_t | frequency_temp, |
uint8_t | output_mode | ||
) |
uint32_t waveform_aprox_freqcalculation | ( | float | freqency | ) |