#include "CeylanIPCCommands.h"
Go to the source code of this file.
Variables | |
const ARM9CommandID | HelloToTheARM7 = 0 |
This include file centralizes the system (Ceylan-specific) command identifiers for the FIFO-based IPC, notably for the Nintendo DS. | |
const ARM9CommandID | PingARM7 = 1 |
Sends a ping to the ARM7, which is expected to return a pong command. | |
const ARM9CommandID | StatusInitRequest = 2 |
Tells the ARM7 to update its state, and to write it and its error code in the variable whose address is specified in the next element of this command. | |
const ARM9CommandID | ShutdownIPCRequest = 3 |
Tells the ARM7 to stop its FIFO and its report mechanism. | |
const ARM9CommandID | BatteryStatusRequest = 4 |
Tells the ARM7 to send back the current battery status. | |
const ARM9CommandID | DSTypeRequest = 5 |
Tells the ARM7 to send back the actual DS type. | |
const ARM7CommandID | HelloToTheARM9 = 0 |
This is not really a command, as null values can occur before the FIFO system is up and running on both sides. | |
const ARM7CommandID | PongARM9 = 1 |
Sends a pong to the ARM9, after a ping command has been sent to the ARM7. | |
const ARM7CommandID | BatteryStatusAnswer = 2 |
Used by the ARM7 to return the current battery status. | |
const ARM7CommandID | DSTypeAnswer = 3 |
Used by the ARM7 to return the DS type. |
const ARM7CommandID BatteryStatusAnswer = 2 |
Used by the ARM7 to return the current battery status.
Definition at line 75 of file CeylanIPCCommands.c.
Referenced by handleBatteryStatusRequest(), and Ceylan::System::FIFO::handleReceivedSystemSpecificCommand().
const ARM9CommandID BatteryStatusRequest = 4 |
Tells the ARM7 to send back the current battery status.
No parameters set in the command element, no next element to send, but an answer is expected.
Definition at line 65 of file CeylanIPCCommands.c.
Referenced by handleReceivedSystemSpecificCommand(), and Ceylan::System::FIFO::sendBatteryStatusRequest().
const ARM7CommandID DSTypeAnswer = 3 |
Used by the ARM7 to return the DS type.
Definition at line 76 of file CeylanIPCCommands.c.
Referenced by handleDSTypeRequest(), and Ceylan::System::FIFO::handleReceivedSystemSpecificCommand().
const ARM9CommandID DSTypeRequest = 5 |
Tells the ARM7 to send back the actual DS type.
No parameters set in the command element, no next element to send, but an answer is expected.
Definition at line 66 of file CeylanIPCCommands.c.
Referenced by handleReceivedSystemSpecificCommand(), and Ceylan::System::FIFO::sendDSTypeRequest().
const ARM9CommandID HelloToTheARM7 = 0 |
This include file centralizes the system (Ceylan-specific) command identifiers for the FIFO-based IPC, notably for the Nintendo DS.
This is not really a command, as null values can occur before the FIFO system is up and running on both sides.
It is to be included by ARM7 C code and ARM9 C++ code.
typedef for FIFOCommandID is expected to be already defined (it cannot be defined here as its definition is specific to each ARM: Ceylan::Uint8/uint8).
enum not used as are int, thus 32-bit, whereas we want 8 bit. System-specific command identifier values range from 0 to 127.
Definition at line 61 of file CeylanIPCCommands.c.
Referenced by handleReceivedSystemSpecificCommand().
const ARM7CommandID HelloToTheARM9 = 0 |
This is not really a command, as null values can occur before the FIFO system is up and running on both sides.
No parameters set in the command element, no answer expected.
Definition at line 73 of file CeylanIPCCommands.c.
Referenced by Ceylan::System::FIFO::handleReceivedSystemSpecificCommand().
const ARM9CommandID PingARM7 = 1 |
Sends a ping to the ARM7, which is expected to return a pong command.
No parameters set in the only command element, pong answer expected.
Definition at line 62 of file CeylanIPCCommands.c.
const ARM7CommandID PongARM9 = 1 |
Sends a pong to the ARM9, after a ping command has been sent to the ARM7.
No parameters set in the only command element, no answer expected.
Definition at line 74 of file CeylanIPCCommands.c.
Referenced by Ceylan::System::FIFO::handleReceivedSystemSpecificCommand().
const ARM9CommandID ShutdownIPCRequest = 3 |
Tells the ARM7 to stop its FIFO and its report mechanism.
No parameters set in the command element, no next element to send, no answer expected.
Definition at line 64 of file CeylanIPCCommands.c.
Referenced by Ceylan::System::FIFO::deactivate(), and handleReceivedSystemSpecificCommand().
const ARM9CommandID StatusInitRequest = 2 |
Tells the ARM7 to update its state, and to write it and its error code in the variable whose address is specified in the next element of this command.
No parameters set in the command element, next sent element will be the address in question, no answer expected.
Definition at line 63 of file CeylanIPCCommands.c.
Referenced by Ceylan::System::FIFO::activate(), and handleReceivedSystemSpecificCommand().