public sealed class MotionSerialCom : MotionCom| MotionSerialCom | Constructs a serial communication object with the given port name and given baudrate |
| BaudRate | Gets the current baudrate of the serial communication |
| BytesToRead | The amount of bytes that are on the rx buffer of the serial converter |
| DefaultBaudrate |
The default baudrate of the driver in fw mode (normal)
(Overrides MotionComDefaultBaudrate) |
| DefaultBootBaudrate |
The default baudrate of the driver in boot mode
(Overrides MotionComDefaultBootBaudrate) |
| IsConnected |
Indicates whether the serial communication is open or not
(Overrides MotionComIsConnected) |
| IsOpen | Indicates whether the serial communication is open or not |
| ChangeBaudrate |
Changes the baudrate of the serial communication
(Overrides MotionComChangeBaudrate(Int32)) |
| CloseCom |
Closes the serial communication
(Overrides MotionComCloseCom) |
| CloseComAsync |
Closes the serial communication asynchronically.
(Overrides MotionComCloseComAsync) |
| ConfigureBaudrate | Tries to communicate with the driver in all it's baudrates until a valid response is received |
| ConnectCom |
Opens the serial port
(Overrides MotionComConnectCom) |
| ConvertPacketToByteArray | Given a packet and the communication direction, gets the packets as byte array |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| EraseAsync |
Erases the flash in order to burn a new firmware / bootloader
(Overrides MotionComEraseAsync(MotionPacketHelperBurnFile)) |
| ExitBoot |
Exits the bootloader and tries to load the firmware
(Overrides MotionComExitBoot(Int32, NullableTimeSpan)) |
| ExitBootAsync |
Exits the bootloader and tries to load the firmware
(Overrides MotionComExitBootAsync(Int32, NullableTimeSpan)) |
| Finalize |
Destruct the serial communication object and free it's resources
(Overrides ObjectFinalize) |
| FlushRxBuffer |
Flushes the rx buffer of the serial converter
(Overrides MotionComFlushRxBuffer) |
| FlushRxBufferAsync |
Flushes the rx buffer of the serial converter asynchronously
(Overrides MotionComFlushRxBufferAsync) |
| GetBaudrate |
Gets the current baudrate of the serial communication
(Overrides MotionComGetBaudrate) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| LoadDefaultParameters |
Load the default parameters to the driver.
(Inherited from MotionCom) |
| PreserveBootDataAsync |
Checks if the burn file is a boot file. If so, when the boot version is between 20122 and 30205, then we preserve the hw version, sn, pn, data code, lot, tech code and factory code in the address 3F 00 00 40.
Assumes that the burn file is a boot file. Also, this method assumes that there are no additional messages running in the background.
(Inherited from MotionCom) |
| ProgramAsync |
Burns the driver with a new firmware / bootloader
(Overrides MotionComProgramAsync(MotionPacketHelperBurnFile, IProgressDouble, Double, Double)) |
| ReceiveBuffer |
Receives all the bytes that are on the rx buffer of the serial converter.
(Overrides MotionComReceiveBuffer) |
| ReceiveBufferAsync |
Receives all the bytes that are on the rx buffer of the serial converter asynchronically.
(Overrides MotionComReceiveBufferAsync) |
| ReceivePacket |
Receives a packet from the driver
(Overrides MotionComReceivePacket) |
| ReceivePacketAsync |
Receives a packet from the driver asynchronically
(Overrides MotionComReceivePacketAsync) |
| ResetDriver |
Resets the driver
(Inherited from MotionCom) |
| SaveParameters |
Saves the parameters to the driver
(Overrides MotionComSaveParameters(Int32, Boolean, Int32)) |
| SendData |
Sends an array of bytes
(Overrides MotionComSendData(Byte)) |
| SendPacket |
Sends a packet to the driver
(Overrides MotionComSendPacket(MotionDataPacket)) |
| SendPacketAsync |
Sends a packet to the driver asynchronically
(Overrides MotionComSendPacketAsync(MotionDataPacket)) |
| SendReceivePacketAsync |
Sends a packet and then receives a packet.
(Inherited from MotionCom) |
| SetDriverBootBaudrate |
Sets the driver's boot default baudrate (9600) to 230400
(Overrides MotionComSetDriverBootBaudrate(UInt32)) |
| SetDriverBootBaudrateAsync |
Sets the driver's boot default baudrate (9600) to 230400
(Overrides MotionComSetDriverBootBaudrateAsync(UInt32)) |
| SetReceiveTimeOut |
Sets how long the receive method should wait before it signals a timeout. see ReadTimeout (Overrides MotionComSetReceiveTimeOut(UInt64)) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| TryCalibrate |
Tries to calibrate the driver with the specified calibration type
(Inherited from MotionCom) |