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 :
Initializes the communication interface and configures the click board.
Predefined characters are inputed from the serial port. Changes the signal frequency, waveform or amplitude depending on the receiver character.
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 | ( | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
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 | ) |