amfm 2.0.0.0
main.c File Reference

AmFm Click example. More...

#include "board.h"
#include "log.h"
#include "amfm.h"

Functions

void amfm_case_memorize ()
 
void amfm_case_station_1 (amfm_t *ctx)
 
void amfm_case_station_2 (amfm_t *ctx)
 
void amfm_case_station_3 (amfm_t *ctx)
 
void amfm_case_station_4 (amfm_t *ctx)
 
void amfm_case_station_5 (amfm_t *ctx)
 
void amfm_case_seek (amfm_t *ctx)
 
void amfm_case_plus (amfm_t *ctx)
 
void amfm_case_minus (amfm_t *ctx)
 
void amfm_case_mute (amfm_t *ctx)
 
void amfm_case_tune_up (amfm_t *ctx)
 
void amfm_case_tune_down (amfm_t *ctx)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

float aux
 
uint8_t volume = 0x3F
 
uint8_t mute_flag = 0
 
uint8_t status
 
uint16_t station_1 = 0
 
uint16_t station_2 = 0
 
uint16_t station_3 = 0
 
uint16_t station_4 = 0
 
uint16_t station_5 = 0
 
uint16_t station_frequency = 0
 
uint8_t memory = 0
 

Detailed Description

AmFm Click example.

Description

This app simulate RADIO RECEIVER.

The demo application is composed of two sections :

Application Init

Initializes device.

Application Task

Several additional functions are executed and printed over the terminal.

Author
MikroE Team

Function Documentation

◆ amfm_case_memorize()

void amfm_case_memorize ( )

◆ amfm_case_minus()

void amfm_case_minus ( amfm_t * ctx)

◆ amfm_case_mute()

void amfm_case_mute ( amfm_t * ctx)

◆ amfm_case_plus()

void amfm_case_plus ( amfm_t * ctx)

◆ amfm_case_seek()

void amfm_case_seek ( amfm_t * ctx)

◆ amfm_case_station_1()

void amfm_case_station_1 ( amfm_t * ctx)

◆ amfm_case_station_2()

void amfm_case_station_2 ( amfm_t * ctx)

◆ amfm_case_station_3()

void amfm_case_station_3 ( amfm_t * ctx)

◆ amfm_case_station_4()

void amfm_case_station_4 ( amfm_t * ctx)

◆ amfm_case_station_5()

void amfm_case_station_5 ( amfm_t * ctx)

◆ amfm_case_tune_down()

void amfm_case_tune_down ( amfm_t * ctx)

◆ amfm_case_tune_up()

void amfm_case_tune_up ( amfm_t * ctx)

◆ 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 )

Variable Documentation

◆ aux

float aux

◆ memory

uint8_t memory = 0

◆ mute_flag

uint8_t mute_flag = 0

◆ station_1

uint16_t station_1 = 0

◆ station_2

uint16_t station_2 = 0

◆ station_3

uint16_t station_3 = 0

◆ station_4

uint16_t station_4 = 0

◆ station_5

uint16_t station_5 = 0

◆ station_frequency

uint16_t station_frequency = 0

◆ status

uint8_t status

◆ volume

uint8_t volume = 0x3F