IGadgeteerUartClient
- class phoenix5.IGadgeteerUartClient
Bases:
pybind11_object
Interface for uart gadgeteer devices
- class GadgeteerConnection(value: int)
Bases:
pybind11_object
Method of connection to gadgeteer
Members:
NotConnected : Device not connected
Connecting : Device in process of connecting
Connected : Device is connected
- Connected = <GadgeteerConnection.Connected: 2>
- Connecting = <GadgeteerConnection.Connecting: 1>
- NotConnected = <GadgeteerConnection.NotConnected: 0>
- property name
- property value
- class GadgeteerProxyType(value: int)
Bases:
pybind11_object
Device connected to gadgeteer
Members:
General : General Gadgeteer Proxy
Pigeon : Pigeon connected to gadgeteer
PC_HERO : HERO connected to gadgeteer
- General = <GadgeteerProxyType.General: 0>
- PC_HERO = <GadgeteerProxyType.PC_HERO: 2>
- Pigeon = <GadgeteerProxyType.Pigeon: 1>
- property name
- property value
- class GadgeteerUartStatus
Bases:
pybind11_object
The status of the gadgeteer device
- property bitrate
Bitrate of connection
- property conn
Connection status
- property resetCount
Number of resets that have happened
- property type
Type of gadgeteer
- getGadgeteerStatus(status: phoenix5._ctre.IGadgeteerUartClient.GadgeteerUartStatus) int
Gets gadgeteer status
- Parameters:
status – status object to fill
- Returns:
ErrorCode
- static toString(*args, **kwargs)
Overloaded function.
toString(gpt: phoenix5._ctre.IGadgeteerUartClient.GadgeteerProxyType) -> str
Gets the string representation of GadgeteerProxyType
- Parameters:
gpt – GadgeteerProxyType to get the string of
- Returns:
strnig representation of GadgeteerProxyType
toString(gc: phoenix5._ctre.IGadgeteerUartClient.GadgeteerConnection) -> str
Gets the string representation of GadgeteerConnection
- Parameters:
gc – GadgeteerConnection to get the string of
- Returns:
strnig representation of GadgeteerConnection