Tezzeret  1
Tezzeret
GmUartOut.hpp
1 /*
2  * GmUartOut.hpp
3  *
4  * Created on: Aug 13, 2016
5  * Author: rcram
6  */
7 
8 #ifndef GMUARTOUT_HPP_
9 #define GMUARTOUT_HPP_
10 
11 #include <stdio.h>
12 #include <string.h>
13 #include <stdlib.h>
14 #include <stdbool.h>
15 #include <GmStorage.hpp>
16 
17 /* RTOS Driver Header files */
18 #include <ti/drivers/UART.h>
19 #include <ti/drivers/GPIO.h>
20 
21 namespace Geometrics
22 {
23  class CTivaUartOut : public GmStorage
24  {
25  public:
26  CTivaUartOut ();
27  ~CTivaUartOut ();
28  virtual int Open (int iBaudRate,
29  const char* szName,
30  const char* szReadWrite,
31  int iBoardId);
32  //int Setup ();
33  int WriteData (const char* pcData,
34  unsigned int iDataSize,
35  UInt32 ui32Topic);
36  virtual int Close (int iFileIndex);
37  bool IsOpen () { return m_bIsOpen; };
38 
39  protected:
40  UART_Params m_uartParams;
41  UART_Handle m_uart_comp;
42  bool m_bFailed;
43  };
44 }
45 
46 #endif /* GMUARTOUT_HPP_ */
Definition: GmUartOut.hpp:24
Definition: GmStorage.hpp:81
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47