C# Class Ohana3DS_Transfigured.Ohana.Models.PICA200.PICACommandWriter

Inheritance: IDisposable
ファイルを表示 Open project: Quibilia/Ohana3DS-Transfigured

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

PICACommandWriter() public method

public PICACommandWriter ( Stream data ) : System
data Stream
return System

align() public method

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
return void

align() public method

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
return void

setCommand() public method

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
return void

setCommand() public method

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
return void

setCommand() public method

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
return void

setCommand() public method

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
return void

setCommand() public method

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
return void

setCommandConsecutive() public method

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
return void

setCommandConsecutive() public method

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
return void

setCommandConsecutive() public method

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
return void