C# Class Ev3devMapping.ControlMessage

Inheritance: IMessage
Datei anzeigen Open project: bmegli/ev3dev-mapping-ui Class Usage Examples

Public Properties

Property Type Description
NEGATIVE_COMMANDS_ATTRIBUTES ControlAttributes[][]
POSITIVE_COMMANDS_ATTRIBUTES ControlAttributes[][]

Public Methods

Method Description
Attribute ( int index ) : VALUE
DisableAllMessage ( ) : ControlMessage
DisableMessage ( string unique_name ) : ControlMessage
EnableMessage ( string unique_name, string call, ushort creation_delay_ms ) : ControlMessage
FillWithKeepaliveMessage ( ) : ControlMessage
FromBinary ( BinaryReader reader ) : void
GetCommand ( ) : ControlCommands
GetTimestampUs ( ) : ulong
HeaderSize ( ) : int
KeepaliveMessage ( ) : ControlMessage
NewMessage ( ControlCommands command ) : void
PayloadSize ( BinaryReader header_data ) : int
PutAttribute ( ControlAttribute attribute ) : void
PutI32 ( ControlAttributes attribute, int value ) : void
PutString ( ControlAttributes attribute, string value ) : void
PutU16 ( ControlAttributes attribute, ushort value ) : void
ToBinary ( BinaryWriter writer ) : int
ToString ( ) : string

Private Methods

Method Description
Validate ( ) : void

Method Details

Attribute() public method

public Attribute ( int index ) : VALUE
index int
return VALUE

DisableAllMessage() public static method

public static DisableAllMessage ( ) : ControlMessage
return ControlMessage

DisableMessage() public static method

public static DisableMessage ( string unique_name ) : ControlMessage
unique_name string
return ControlMessage

EnableMessage() public static method

public static EnableMessage ( string unique_name, string call, ushort creation_delay_ms ) : ControlMessage
unique_name string
call string
creation_delay_ms ushort
return ControlMessage

FillWithKeepaliveMessage() public method

public FillWithKeepaliveMessage ( ) : ControlMessage
return ControlMessage

FromBinary() public method

public FromBinary ( BinaryReader reader ) : void
reader BinaryReader
return void

GetCommand() public method

public GetCommand ( ) : ControlCommands
return ControlCommands

GetTimestampUs() public method

public GetTimestampUs ( ) : ulong
return ulong

HeaderSize() public method

public HeaderSize ( ) : int
return int

KeepaliveMessage() public static method

public static KeepaliveMessage ( ) : ControlMessage
return ControlMessage

NewMessage() public method

public NewMessage ( ControlCommands command ) : void
command ControlCommands
return void

PayloadSize() public method

public PayloadSize ( BinaryReader header_data ) : int
header_data BinaryReader
return int

PutAttribute() public method

public PutAttribute ( ControlAttribute attribute ) : void
attribute ControlAttribute
return void

PutI32() public method

public PutI32 ( ControlAttributes attribute, int value ) : void
attribute ControlAttributes
value int
return void

PutString() public method

public PutString ( ControlAttributes attribute, string value ) : void
attribute ControlAttributes
value string
return void

PutU16() public method

public PutU16 ( ControlAttributes attribute, ushort value ) : void
attribute ControlAttributes
value ushort
return void

ToBinary() public method

public ToBinary ( BinaryWriter writer ) : int
writer BinaryWriter
return int

ToString() public method

public ToString ( ) : string
return string

Property Details

NEGATIVE_COMMANDS_ATTRIBUTES public_oe property

public ControlAttributes[][] NEGATIVE_COMMANDS_ATTRIBUTES
return ControlAttributes[][]

POSITIVE_COMMANDS_ATTRIBUTES public_oe property

public ControlAttributes[][] POSITIVE_COMMANDS_ATTRIBUTES
return ControlAttributes[][]