C# Класс Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommandWriter

Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : void
Dispose ( ) : void
PICACommandWriter ( Stream data ) : System
align ( uint mask ) : void

Adds padding 0x0 bytes on the data until all address bits of the mask equals 0.

align ( uint mask, uint maskedValue ) : void

Adds padding 0x0 bytes on the data until all address bits of the mask equals the specified value.

setCommand ( ushort commandId, Color parameter ) : void

Sets a new command with a single Color parameter.

setCommand ( ushort commandId, List parameters ) : void

Sets a new command with multiple Float parameters.

setCommand ( ushort commandId, List parameters, byte mask = 0xf ) : void

Sets a new command with multiple UInt parameters.

setCommand ( ushort commandId, float parameter ) : void

Sets a new command with a single Float parameter.

setCommand ( ushort commandId, uint parameter, byte mask = 0xf ) : void

Sets a new command with a single UInt parameter.

setCommandConsecutive ( ushort commandId, List parameters ) : void

Sets a new command with multiple Float parameters. It uses consecutive mode, which means that the command ID will be incremented after each parameter.

setCommandConsecutive ( ushort commandId, List parameters, byte mask = 0xf ) : void

Sets a new command with multiple UInt parameters. It uses consecutive mode, which means that the command ID will be incremented after each parameter.

setCommandConsecutive ( ushort commandId, uint parameter, List parameters ) : void

Sets a new command with one UInt parameter and multiple Float parameters. It uses consecutive mode, which means that the command ID will be incremented after each parameter.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

Close() публичный Метод

public Close ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

PICACommandWriter() публичный Метод

public PICACommandWriter ( Stream data ) : System
data Stream
Результат System

align() публичный Метод

Adds padding 0x0 bytes on the data until all address bits of the mask equals 0.
public align ( uint mask ) : void
mask uint The mask
Результат void

align() публичный Метод

Adds padding 0x0 bytes on the data until all address bits of the mask equals the specified value.
public align ( uint mask, uint maskedValue ) : void
mask uint The mask
maskedValue uint Value that masked bits should equal to stop padding
Результат void

setCommand() публичный Метод

Sets a new command with a single Color parameter.
public setCommand ( ushort commandId, Color parameter ) : void
commandId ushort ID of the command
parameter Color Parameter of the command
Результат void

setCommand() публичный Метод

Sets a new command with multiple Float parameters.
public setCommand ( ushort commandId, List parameters ) : void
commandId ushort ID of the command
parameters List Parameters of the command
Результат void

setCommand() публичный Метод

Sets a new command with multiple UInt parameters.
public setCommand ( ushort commandId, List parameters, byte mask = 0xf ) : void
commandId ushort ID of the command
parameters List Parameters of the command
mask byte Mask used when updating the register value
Результат void

setCommand() публичный Метод

Sets a new command with a single Float parameter.
public setCommand ( ushort commandId, float parameter ) : void
commandId ushort ID of the command
parameter float Parameter of the command
Результат void

setCommand() публичный Метод

Sets a new command with a single UInt parameter.
public setCommand ( ushort commandId, uint parameter, byte mask = 0xf ) : void
commandId ushort ID of the command
parameter uint Parameter of the command
mask byte Mask used when updating the register value
Результат void

setCommandConsecutive() публичный Метод

Sets a new command with multiple Float parameters. It uses consecutive mode, which means that the command ID will be incremented after each parameter.
public setCommandConsecutive ( ushort commandId, List parameters ) : void
commandId ushort ID of the command
parameters List Parameters of the command
Результат void

setCommandConsecutive() публичный Метод

Sets a new command with multiple UInt parameters. It uses consecutive mode, which means that the command ID will be incremented after each parameter.
public setCommandConsecutive ( ushort commandId, List parameters, byte mask = 0xf ) : void
commandId ushort ID of the command
parameters List Parameters of the command
mask byte Mask used when updating the register value
Результат void

setCommandConsecutive() публичный Метод

Sets a new command with one UInt parameter and multiple Float parameters. It uses consecutive mode, which means that the command ID will be incremented after each parameter.
public setCommandConsecutive ( ushort commandId, uint parameter, List parameters ) : void
commandId ushort ID of the command
parameter uint UInt parameter of the command
parameters List Extra Float parameters of the command
Результат void