fm 2.0.0.0
main.c File Reference

Fm Click example. More...

#include "board.h"
#include "log.h"
#include "fm.h"

Macros

#define SIGNAL_STRENGTH_LOWER_LIMIT   25
 

Functions

void fm_case_plus (fm_t *ctx)
 
void fm_case_minus (fm_t *ctx)
 
void fm_case_seek (fm_t *ctx)
 
void fm_case_tune (fm_t *ctx)
 
void fm_case_memorize ()
 
void fm_case_mute (fm_t *ctx)
 
void fm_case_station_1 (fm_t *ctx)
 
void fm_case_station_2 (fm_t *ctx)
 
void fm_case_station_3 (fm_t *ctx)
 
void fm_case_station_4 (fm_t *ctx)
 
void fm_case_station_5 (fm_t *ctx)
 
void fm_case_tune_up (fm_t *ctx)
 
void fm_case_tune_down (fm_t *ctx)
 
void fm_case_wrong_command ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Fm Click example.

Description

This click represent FM radio tuner which supports worldwide FM band (76 – 108 MHz) and has a set of features such as automatic frequency and gain control, seek tuning and volume control.

The demo application is composed of two sections :

Application Init

Initializing I2C driver, powering up device, setting basic settings for Europe, setting values of seek threshold, volume, snr threshold and impulse detection threshold. Seek and memorize 5 radio stations with a signal strength above the set limit.

Application Task

Tunes all memorized stations. Switches the stations each 10 seconds.

Additional Functions

Author
MikroE Team

Macro Definition Documentation

◆ SIGNAL_STRENGTH_LOWER_LIMIT

#define SIGNAL_STRENGTH_LOWER_LIMIT   25

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 )

◆ fm_case_memorize()

void fm_case_memorize ( )

◆ fm_case_minus()

void fm_case_minus ( fm_t * ctx)

◆ fm_case_mute()

void fm_case_mute ( fm_t * ctx)

◆ fm_case_plus()

void fm_case_plus ( fm_t * ctx)

◆ fm_case_seek()

void fm_case_seek ( fm_t * ctx)

◆ fm_case_station_1()

void fm_case_station_1 ( fm_t * ctx)

◆ fm_case_station_2()

void fm_case_station_2 ( fm_t * ctx)

◆ fm_case_station_3()

void fm_case_station_3 ( fm_t * ctx)

◆ fm_case_station_4()

void fm_case_station_4 ( fm_t * ctx)

◆ fm_case_station_5()

void fm_case_station_5 ( fm_t * ctx)

◆ fm_case_tune()

void fm_case_tune ( fm_t * ctx)

◆ fm_case_tune_down()

void fm_case_tune_down ( fm_t * ctx)

◆ fm_case_tune_up()

void fm_case_tune_up ( fm_t * ctx)

◆ fm_case_wrong_command()

void fm_case_wrong_command ( )

◆ main()

int main ( void )