-
Notifications
You must be signed in to change notification settings - Fork 69
N: SIO Command 'W' Write
Bill Kendrick edited this page May 27, 2022
·
4 revisions
This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).
Write the requested number of bytes out to the protocol channel.
DCB | Value |
---|---|
DDEVIC | $71 |
DUNIT | $01 - $04 |
DCOMND | $57 'W' |
DSTATS | $80 |
DBUF | NULL |
DTIMLO | $0F |
DBYT | # of bytes to write |
DAUX1 | # of bytes to write LO |
DAUX2 | # of bytes to write HI |
- Device 09 to 0C
- Use AdamNET Write (EOS WRITE CHARACTER DEVICE)
Byte | Description |
---|---|
0 | 'W' (the command byte) |
1-n | The bytes to write, maximum 1024. |
if (xmit_buffer_len>0)
{
OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='W';
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&xmit_buffer;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=xmit_buffer_len;
OS.dcb.daux1=xmit_buffer_len;
OS.dcb.daux2=0;
siov();
xmit_buffer_len=0;
return;
}
/* This uses EOSLIB: http://github.com/tschak909/eoslib */
#define NET_DEV 0x09
const char *out="WHELLO WORLD!"; // Note the 'W' command byte.
void write_hello(void)
{
/* ASSUMES CHANNEL ALREADY OPEN */
eos_write_character_device(NET_DEV,out,sizeof(out));
}
Put other related command links here.
Copyright 2024 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD
- Home
- What is FujiNet?
- The Definition of Done
- Board bring up for FujiNet Platform.IO code
- The Complete Linux CLI Guide
- The Complete macOS CLI Guide
- Development Env for Apps
- FujiNet-Development-Guidelines
- System Quickstarts
- FujiNet Flasher
- Setting up a TNFS Server
- FujiNet Configuration File: fnconfig.ini
- AppKey Registry - SIO Command $DC Open App Key
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine