MonoBrick EV3 Firmware
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
MonoBrickFirmware.Sensors.UartSensor Class Referenceabstract

Class for reading and writing data to a UART sensor More...

Inheritance diagram for MonoBrickFirmware.Sensors.UartSensor:
MonoBrickFirmware.Sensors.ISensor MonoBrickFirmware.Sensors.EV3ColorSensor MonoBrickFirmware.Sensors.EV3GyroSensor MonoBrickFirmware.Sensors.EV3IRSensor MonoBrickFirmware.Sensors.EV3UltrasonicSensor

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...
 

Detailed Description

Class for reading and writing data to a UART sensor

Member Function Documentation

byte [] MonoBrickFirmware.Sensors.UartSensor.GetSensorInfo ( )
inlineprotected

Gets the sensor info based on the mode

Returns
Raw Sensor info data
abstract string MonoBrickFirmware.Sensors.UartSensor.GetSensorName ( )
pure virtual
abstract int MonoBrickFirmware.Sensors.UartSensor.NumberOfModes ( )
pure virtual
abstract string MonoBrickFirmware.Sensors.UartSensor.ReadAsString ( )
pure virtual
abstract string MonoBrickFirmware.Sensors.UartSensor.SelectedMode ( )
pure virtual
abstract void MonoBrickFirmware.Sensors.UartSensor.SelectNextMode ( )
pure virtual
abstract void MonoBrickFirmware.Sensors.UartSensor.SelectPreviousMode ( )
pure virtual

The documentation for this class was generated from the following file: