DRA818 VHF or UHF radio module library. http://www.dorji.com/docs/data/DRA818V.pdf

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dra818.h Source File

dra818.h

00001 #ifndef MBED_DRA818_H
00002 #define MBED_DRA818_H
00003  
00004 #include "mbed.h"
00005 
00006 class DRA818 {
00007     public:
00008         DRA818(Serial *s, PinName PTT);
00009         void setTXFreq(double tx_freq);
00010         void setRXFreq(double rx_freq);
00011         void setTXCTCSS(uint8_t tx_ctcss);
00012         void setRXCTCSS(uint8_t rx_ctcss);
00013         void setSquelch(uint8_t sql);
00014         void setVolume(uint8_t vol);
00015         void setGWB(bool gwb);
00016         void setFilters(bool preemph, bool highpass, bool lowpass);
00017         void writeFreq();
00018 
00019     private:
00020         Serial *serial;
00021         DigitalOut PTT_PIN;
00022         uint8_t tx_ctcss;
00023         uint8_t rx_ctcss;
00024         float tx_freq;
00025         float rx_freq;
00026         bool gwb;
00027         uint8_t volume;
00028         uint8_t squelch;
00029         uint8_t preemph;
00030         uint8_t highpass;
00031         uint8_t lowpass;
00032         char buffer[60];
00033 };
00034 #endif