evc 2.0.0.0
main.c File Reference

EVC Click example. More...

#include "board.h"
#include "log.h"
#include "evc.h"

Functions

uint8_t get_current_channel (uint8_t ch)
 
void play (evc_t *ctx)
 
void mute (evc_t *ctx)
 
void test_change (evc_t *ctx)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

EVC Click example.

Description

This application allows manipulation of 6 channel volume control

The demo application is composed of two sections :

Application Init

Initialization driver init, default configuration and sets first volume.

Application Task

emulates user input and exectuyrd functions based on set of valid commands.

note: Additional Functions :

void test_change ( ) - Emulates user input to change parameters. void mute( ) - Mute nad void play ( ) - Start new settings of the cahnnel uint8_t get_current_channel ( ) - Return current channel.

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 )

◆ get_current_channel()

uint8_t get_current_channel ( uint8_t ch)

◆ main()

int main ( void )

◆ mute()

void mute ( evc_t * ctx)

◆ play()

void play ( evc_t * ctx)

◆ test_change()

void test_change ( evc_t * ctx)