-
Notifications
You must be signed in to change notification settings - Fork 71
SIO Command $CF Base64 Encode Compute
Ripjetski edited this page Aug 23, 2023
·
3 revisions
This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).
Takes the data that was input by Base64 Encode Input, and encodes it with the Base64 algorithm. The result is put in the output buffer, so that Base64 Encode Length can be used to get the output buffer length, and Base64 Encode Output can be used to retrieve the output.
Firmware version required: 1.1 (2023.08.22) +
DCB | Value |
---|---|
DDEVIC | $70 |
DUNIT | $01 |
DCOMND | $CF |
DSTATS | $00 |
DBUF | NULL |
DTIMLO | $03 |
DBYT | 0 |
DAUX1 | 0 |
DAUX2 | 0 |
unsigned char base64_encode_compute(void)
{
OS.dcb.ddevic = BASE64_DEVICE;
OS.dcb.dunit = 1;
OS.dcb.dcomnd = 0xCF;
OS.dcb.dstats = 0x00;
OS.dcb.dbuf = NULL;
OS.dcb.dtimlo = BASE64_TIMEOUT;
OS.dcb.dbyt = 0;
OS.dcb.daux = 0;
siov();
return OS.dcb.dstats; // Return SIO error or success.
}
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