Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.
UARTConfig.h
00001 #ifndef SmartLab_MuRata_Config_UARTConfig 00002 #define SmartLab_MuRata_Config_UARTConfig 00003 00004 #include "IConfig.h" 00005 00006 namespace SmartLabMuRata 00007 { 00008 class UARTConfig : public IConfig 00009 { 00010 /* 00011 * Parameters are as follows: 00012 * UINT8 Request Sequence 00013 * UINT8 Port 00014 * UINT8 Format 00015 * UINT32 Baud 00016 * Port specifies the UART port. Valid value is 1. 00017 */ 00018 00019 //Data 0x10 8 data bits 00020 private : 00021 char value[6]; 00022 00023 public: 00024 00025 enum FlowControl { NoFlowControl = 0x00, HardwareFlowControl = 0x20, }; 00026 enum Parity { None = 0x00, Odd = 0x40, Even = 0x80, }; 00027 enum StopBits { StopBit1 = 0x01, StopBit2 = 0x02, }; 00028 enum BaudRate { _9600 = 9600, _19200 = 19200, _38400 = 38400, _57600 = 57600, _115200 = 115200, _230400 = 230400, _460800 = 460800, _921600 = 921600 }; 00029 00030 virtual const char * GetValue(); 00031 00032 virtual int GetValueLength(); 00033 00034 UARTConfig(const FlowControl flowControl, const Parity parity, const StopBits StopBits, const BaudRate baudRate); 00035 00036 UARTConfig * SetFlowControl(const FlowControl flowControl); 00037 00038 UARTConfig * SetParity(const Parity parity); 00039 00040 UARTConfig * SetStopBits(const StopBits stop); 00041 00042 UARTConfig * SetBaudRate(const BaudRate baudRate); 00043 }; 00044 } 00045 00046 #endif
Generated on Fri Jul 15 2022 01:02:11 by 1.7.2