fm 2.0.0.0
|
This file contains API for FM Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | fm_t |
Click ctx object definition. More... | |
struct | fm_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | fm_cfg_setup (fm_cfg_t *cfg) |
Config Object Initialization function. | |
FM_RETVAL | fm_init (fm_t *ctx, fm_cfg_t *cfg) |
Initialization function. | |
void | fm_default_cfg (fm_t *ctx) |
Click Default Configuration function. | |
void | fm_generic_write (fm_t *ctx, uint16_t *reg_buf) |
Generic write function. | |
void | fm_generic_read (fm_t *ctx, uint16_t *reg_buf) |
Reading all registers. | |
void | fm_set_bits (uint16_t *register_buffer, uint16_t register_address, uint16_t bits_mask, uint16_t bits_value) |
Setting bits in specific register on a specific bit location. | |
uint8_t | fm_set_seek_threshold (fm_t *ctx, uint16_t seek_threshold) |
Setting seek threshold value. | |
uint8_t | fm_set_volume (fm_t *ctx, uint8_t volume_level) |
Setting volume value. | |
uint8_t | fm_set_snr_threshold (fm_t *ctx, uint8_t snr_threshold) |
Setting seek SNR threshold value. | |
uint8_t | fm_set_seek_impulse_detection_threshold (fm_t *ctx, uint8_t impulse_detection_threshold) |
Setting seek impulse detection threshold value. | |
uint8_t | fm_get_errors_block_a (fm_t *ctx) |
Reading number of errors to be corrected. | |
uint8_t | fm_get_received_signal_strength_indicator (fm_t *ctx) |
Reading recived strength indicator. | |
uint8_t | fm_get_errors_block_b (fm_t *ctx) |
Reading number of errors to be corrected. | |
uint8_t | fm_get_errors_block_c (fm_t *ctx) |
Reading number of errors to be corrected. | |
uint8_t | fm_get_errors_block_d (fm_t *ctx) |
Reading number of errors to be corrected. | |
float | fm_get_channel_frequency (fm_t *ctx) |
Calculating current channel frequency. | |
void | fm_power_up (fm_t *ctx) |
Powering up device. | |
void | fm_basic_settings (fm_t *ctx) |
Setting basic settings. | |
void | fm_power_down (fm_t *ctx) |
Powering down device. | |
uint16_t | fm_get_channel (fm_t *ctx) |
Reading CHANNEL bits. | |
void | fm_tune_channel (fm_t *ctx, uint16_t channel) |
Setting CHANNEL bits. | |
uint8_t | fm_tune (fm_t *ctx, float channel_frequency) |
Tunning radio station. | |
void | fm_end_tune (fm_t *ctx) |
End tunning. | |
void | fm_seek (fm_t *ctx) |
Start seeking radio station. | |
void | fm_end_seek (fm_t *ctx) |
End seeking. | |
uint8_t | fm_volume_up (fm_t *ctx) |
Increasing volume level. | |
uint8_t | fm_volume_down (fm_t *ctx) |
Decreasing volume level. | |
void | fm_mute_enable (fm_t *ctx) |
Enable mute. | |
void | fm_mute_disable (fm_t *ctx) |
Disable mute. | |
uint8_t | fm_fine_tune_up (fm_t *ctx) |
Fine tunning. | |
uint8_t | fm_fine_tune_down (fm_t *ctx) |
Fine tunning. | |
uint8_t | fm_get_int_pin (fm_t *ctx) |
Checking INT pin status. | |
uint8_t | fm_get_an_pin (fm_t *ctx) |
Checking AN pin status. | |
This file contains API for FM Click driver.