waveform 2.0.0.0
main.c File Reference

Waveform Click example. More...

#include "board.h"
#include "log.h"
#include "waveform.h"

Functions

void waveform_display_commands (void)
 Waveform display commands function.
 
void waveform_parse_command (uint8_t command)
 Waveform parse command function.
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Waveform Click example.

Description

This example demonstrates the use of Waveform click board.

The application is composed of two sections :

Application Init

Initializes the communication interface and configures the click board.

Application Task

Predefined commands are inputed from the serial port. Changes the signal frequency, waveform or amplitude depending on the receiver command.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

◆ waveform_display_commands()

void waveform_display_commands ( void )

Waveform display commands function.

This function displays the list of supported commands on the USB UART.

Returns
None.
Note
None.

◆ waveform_parse_command()

void waveform_parse_command ( uint8_t command)

Waveform parse command function.

This function checks if the input command is supported and executes it.

Parameters
[in]command: Command input, for more details refer to waveform_display_commands function.
Returns
None.
Note
None.