Menu

POSIX CBoard commands

Vladimir Startsev

Simulated console perepherials

The posix package contains CBoard which allows support for simulated hardware:


  • Simulated I/O

  • Simulated CAN

The output of the simulated perepherials is directed to the STDOUT.
The input of the simulated perepherials is read from STDIN.

The simulated perepherials are used for development of the hardware independent high level drivers and for the software testing.
The project NOFREACTIOVE_EXAMPLE_IO demonstrates use of the simulated perepherials.

Inplemented in POSIX package:
CBoard - Board abstraction
CLoIoProcessor - Command parser
CLoIoW32 - simulated 32 bit WO I/O
CLoIoR32 - simulated 32 bit WO I/O
CLoCAN - simulated CAN

CLoIo simulated I/O perepherial console interface

Output

The output is writted in the following format to the STDIO:

IO W ADDRESS DATA

The ADDRESS and the DATA are written using "%08x" format (hexadecimal format without leading 0x ).

Input

The input is read in the following format from the STDIN:

IO R ADDRESS DATA

The ADDRESS and the DATA are read using "%08x" format (hexadecimal format without leading 0x ).

Command acknowledge

The command is acknowledged by following sentence written to the STDOUT:

IO R ACK ADDRESS DATA

The ADDRESS and the DATA are written using "%08x" format (hexadecimal format without leading 0x ).

Command processing acknowledge

The processing of the command by the application (read access to ADDRESS) is acknowledged by following sentence written to the STDOUT:

IO R OK ADDRESS DATA

The ADDRESS and the DATA are written using "%08x" format (hexadecimal format without leading 0x ).

The sumulated I/O shall process next simulated I/O read command after the processing acknowledge of the previous command.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.