2#ifndef GadgeteerUartClient_h_
3#define GadgeteerUartClient_h_
81 case General: retval =
"General";
break;
82 case Pigeon : retval =
"Pigeon";
break;
83 case PC_HERO: retval =
"PC_HERO";
break;
96 case Connecting : retval =
"Connecting";
break;
97 case Connected: retval =
"Connected";
break;
Interface for uart gadgeteer devices.
Definition: GadgeteerUartClient.h:11
virtual int GetGadgeteerStatus(GadgeteerUartStatus &status)=0
Gets gadgeteer status.
static std::string ToString(IGadgeteerUartClient::GadgeteerProxyType gpt)
Gets the string representation of GadgeteerProxyType.
Definition: GadgeteerUartClient.h:78
GadgeteerProxyType
Device connected to gadgeteer.
Definition: GadgeteerUartClient.h:20
@ PC_HERO
HERO connected to gadgeteer.
Definition: GadgeteerUartClient.h:32
@ Pigeon
Pigeon connected to gadgeteer.
Definition: GadgeteerUartClient.h:28
@ General
General Gadgeteer Proxy.
Definition: GadgeteerUartClient.h:24
virtual ~IGadgeteerUartClient()
Definition: GadgeteerUartClient.h:14
IGadgeteerUartClient()
Definition: GadgeteerUartClient.h:13
GadgeteerConnection
Method of connection to gadgeteer.
Definition: GadgeteerUartClient.h:38
@ NotConnected
Device not connected.
Definition: GadgeteerUartClient.h:42
@ Connecting
Device in process of connecting.
Definition: GadgeteerUartClient.h:46
@ Connected
Device is connected.
Definition: GadgeteerUartClient.h:50
static std::string ToString(IGadgeteerUartClient::GadgeteerConnection gc)
Gets the string representation of GadgeteerConnection.
Definition: GadgeteerUartClient.h:92
The status of the gadgeteer device.
Definition: GadgeteerUartClient.h:55
uint32_t resetCount
Number of resets that have happened.
Definition: GadgeteerUartClient.h:63
GadgeteerConnection conn
Connection status.
Definition: GadgeteerUartClient.h:59
GadgeteerProxyType type
Type of gadgeteer.
Definition: GadgeteerUartClient.h:57
uint32_t bitrate
Bitrate of connection.
Definition: GadgeteerUartClient.h:61