Wiki Home >> N:-SIO-Command-$FC---Set-Channel-Mode

N:-SIO-Command-$FC---Set-Channel-Mode


N: SIO Command Set Channel Mode ($FC)

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Change the channel mode of the N: device.

Parameters

DCBValue
DDEVIC$71
DUNIT$01 - $04
DCOMND$FC
DSTATS$00
DBUFNULL
DTIMLO$0F
DBYT0
DAUX1Use the same value passed to N: SIO Command 'O' - Open
DAUX2The mode

Modes

Examples

C

/**
 * sio_channel_mode() - Change channel mode of opened stream
 */
void sio_channel_mode(unsigned char mode)
{
  OS.dcb.ddevic=0x71;
  OS.dcb.dunit=1;
  OS.dcb.dcomnd=0xFC;
  OS.dcb.dstats=0x00;
  OS.dcb.dbuf=NULL;
  OS.dcb.dtimlo=0x0f;
  OS.dcb.dbyt=0;
  OS.dcb.daux1=4; /* READ */
  OS.dcb.daux2=mode;
  siov();
}

See Also


Wiki content is mirrored from the FujiNet Github Wiki