MonoBrick EV3 Firmware
|
Class for reading and writing data to a UART sensor More...
Public Member Functions | |
UartSensor (SensorPort port) | |
abstract string | ReadAsString () |
Reads the sensor value as a string. More... | |
abstract void | SelectNextMode () |
Selects the next mode. More... | |
abstract string | GetSensorName () |
Gets the name of the sensor. More... | |
abstract void | SelectPreviousMode () |
Selects the previous mode. More... | |
abstract int | NumberOfModes () |
Numbers the of modes. More... | |
abstract string | SelectedMode () |
.m.-, More... | |
Protected Member Functions | |
void | Reset () |
byte[] | GetSensorInfo () |
Gets the sensor info based on the mode More... | |
bool | Initialise (UARTMode mode) |
bool | SetMode (UARTMode mode) |
byte | ReadByte () |
byte[] | ReadBytes (int length) |
Protected Attributes | |
const int | NumberOfSensorPorts = SensorManager.NumberOfSensorPorts |
SensorPort | port |
Properties | |
UARTMode | uartMode [get, set] |
SensorPort | Port [get] |
Properties inherited from MonoBrickFirmware.Sensors.ISensor | |
SensorPort | Port [get] |
Sensor port More... | |
Class for reading and writing data to a UART sensor
|
inlineprotected |
Gets the sensor info based on the mode
|
pure virtual |
Gets the name of the sensor.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.EV3IRSensor, MonoBrickFirmware.Sensors.EV3ColorSensor, MonoBrickFirmware.Sensors.EV3GyroSensor, and MonoBrickFirmware.Sensors.EV3UltrasonicSensor.
|
pure virtual |
Numbers the of modes.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.EV3IRSensor, MonoBrickFirmware.Sensors.EV3ColorSensor, MonoBrickFirmware.Sensors.EV3GyroSensor, and MonoBrickFirmware.Sensors.EV3UltrasonicSensor.
|
pure virtual |
Reads the sensor value as a string.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.EV3IRSensor, MonoBrickFirmware.Sensors.EV3GyroSensor, MonoBrickFirmware.Sensors.EV3ColorSensor, and MonoBrickFirmware.Sensors.EV3UltrasonicSensor.
|
pure virtual |
.m.-,
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.EV3IRSensor, MonoBrickFirmware.Sensors.EV3ColorSensor, MonoBrickFirmware.Sensors.EV3GyroSensor, and MonoBrickFirmware.Sensors.EV3UltrasonicSensor.
|
pure virtual |
Selects the next mode.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.EV3IRSensor, MonoBrickFirmware.Sensors.EV3ColorSensor, MonoBrickFirmware.Sensors.EV3GyroSensor, and MonoBrickFirmware.Sensors.EV3UltrasonicSensor.
|
pure virtual |
Selects the previous mode.
Implements MonoBrickFirmware.Sensors.ISensor.
Implemented in MonoBrickFirmware.Sensors.EV3IRSensor, MonoBrickFirmware.Sensors.EV3ColorSensor, MonoBrickFirmware.Sensors.EV3GyroSensor, and MonoBrickFirmware.Sensors.EV3UltrasonicSensor.