37 #include <sys/select.h> 
   38 #include <sys/types.h> 
   41 #include <mraa/uart.h> 
   43 #define HMTRP_DEFAULT_UART 0 
   87     typedef enum { RESET               = 0xf0,
 
   90                    SET_RF_DATARATE     = 0xc3, 
 
   92                    SET_FREQ_MODULATION = 0xa5, 
 
   94                    SET_UART_SPEED      = 0x1e, 
 
   95                    GET_RF_SIGNAL_STR   = 0xa7,
 
   96                    GET_MOD_SIGNAL_STR  = 0x78
 
  104     HMTRP(
int uart=HMTRP_DEFAULT_UART);
 
  128     int readData(
char *buffer, 
int len, 
int millis=-1);
 
  173     bool getConfig(uint32_t *freq, uint32_t *dataRate, uint16_t *rxBandwidth,
 
  174                    uint8_t *modulation, uint8_t *txPower, uint32_t *uartBaud);
 
  265     mraa_uart_context m_uart;
 
uint8_t getModSignalStrength()
Definition: hmtrp.cxx:495
 
bool setRFDataRate(uint32_t rate)
Definition: hmtrp.cxx:294
 
bool setTransmitPower(uint8_t power)
Definition: hmtrp.cxx:370
 
bool setFrequencyModulation(uint8_t modulation)
Definition: hmtrp.cxx:346
 
bool setUARTSpeed(uint32_t speed)
Definition: hmtrp.cxx:394
 
HMTRP(int uart=HMTRP_DEFAULT_UART)
Definition: hmtrp.cxx:40
 
bool checkOK()
Definition: hmtrp.cxx:175
 
bool setupTty(speed_t baud=B9600)
Definition: hmtrp.cxx:145
 
bool setRXBandwidth(uint16_t rxBand)
Definition: hmtrp.cxx:321
 
~HMTRP()
Definition: hmtrp.cxx:72
 
bool setFrequency(uint32_t freq)
Definition: hmtrp.cxx:276
 
bool reset()
Definition: hmtrp.cxx:196
 
API for the HM-TRP Serial RF Pro transceiver. 
Definition: hmtrp.hpp:83
 
int writeData(char *buffer, int len)
Definition: hmtrp.cxx:125
 
uint8_t getRFSignalStrength()
Definition: hmtrp.cxx:454
 
bool dataAvailable(unsigned int millis=0)
Definition: hmtrp.cxx:78
 
int readData(char *buffer, int len, int millis=-1)
Definition: hmtrp.cxx:100
 
bool getConfig(uint32_t *freq, uint32_t *dataRate, uint16_t *rxBandwidth, uint8_t *modulation, uint8_t *txPower, uint32_t *uartBaud)
Definition: hmtrp.cxx:209