summaryrefslogtreecommitdiffstats
path: root/binding/radio_impl.h
diff options
context:
space:
mode:
authorEhsan Takalloo <ehsan.takalloo@gmail.com>2020-08-10 17:18:39 +0430
committerScott Murray <scott.murray@konsulko.com>2020-09-01 13:13:55 -0400
commit4cdb281367813ffc12face0bbcba300fe6e7e2d3 (patch)
treee69cfe4402212d1db80f963c54c7c7d86205e898 /binding/radio_impl.h
parent377a25d3f0831b5fd4a0ac01358ec86341d2531e (diff)
Add rds event
Update types in radio_impl_tef665x.c and radio_impl_tef665x.h Add rds verb to tef665x and send latest rds as response Implement rds parser based on rds standard structure and tef-665x user-manual for rds group types 0A, 0B, 1A, 2A, 2B and 4A Implement scan_start verb for tef-665x Implement scan_stop verb for tef-665x Implement get stereo_mode verb for tef-665x Fix an issue in tef665x_set_frequency_callback Update README.md file Signed-off-by: Ehsan Takalloo <ehsan.takalloo@gmail.com> Change-Id: Ife057e46c52fc420541dbad3b4f51c7d01707a3d
Diffstat (limited to 'binding/radio_impl.h')
-rw-r--r--binding/radio_impl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/radio_impl.h b/binding/radio_impl.h
index 009df9b..2867d7f 100644
--- a/binding/radio_impl.h
+++ b/binding/radio_impl.h
@@ -33,6 +33,8 @@ typedef void (*radio_scan_callback_t)(uint32_t frequency, void *data);
typedef void (*radio_freq_callback_t)(uint32_t frequency, void *data);
+typedef void (*radio_rds_callback_t)(void *rds_data);
+
typedef enum {
MONO = 0,
STEREO
@@ -52,6 +54,8 @@ typedef struct {
void (*set_frequency_callback)(radio_freq_callback_t callback,
void *data);
+ void (*set_rds_callback)(radio_rds_callback_t callback);
+
radio_band_t (*get_band)(void);
void (*set_band)(radio_band_t band);