mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-22 05:59:15 +01:00
ping
This commit is contained in:
parent
02eed1c44c
commit
d630315058
@ -205,6 +205,7 @@ All `DATA` values with upper 8 bits set to `1` (`0xFFxxxxxx`) are reserved for i
|
|||||||
Refrain from using these values in your app for uses other than listed below.
|
Refrain from using these values in your app for uses other than listed below.
|
||||||
Currently defined reserved `DATA` values are:
|
Currently defined reserved `DATA` values are:
|
||||||
|
|
||||||
|
- `0xFF000000` - **Ping** - no-op command to test if app running on the N64 is listening to the AUX events.
|
||||||
- `0xFF000001` - **Halt** - causes the running app to stop all activity and wait in preparation for uploading new ROM to the SC64.
|
- `0xFF000001` - **Halt** - causes the running app to stop all activity and wait in preparation for uploading new ROM to the SC64.
|
||||||
App still should listen to the AUX interrupt and respond to other messages.
|
App still should listen to the AUX interrupt and respond to other messages.
|
||||||
- `0xFF000002` - **Reboot** - causes the running app to perform soft reboot by reloading IPL3 from the ROM and start executing it.
|
- `0xFF000002` - **Reboot** - causes the running app to perform soft reboot by reloading IPL3 from the ROM and start executing it.
|
||||||
|
@ -651,6 +651,7 @@ impl TryFrom<AsynchronousPacket> for DataPacket {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub enum AuxMessage {
|
pub enum AuxMessage {
|
||||||
|
Ping,
|
||||||
Halt,
|
Halt,
|
||||||
Reboot,
|
Reboot,
|
||||||
}
|
}
|
||||||
@ -658,6 +659,7 @@ pub enum AuxMessage {
|
|||||||
impl From<AuxMessage> for u32 {
|
impl From<AuxMessage> for u32 {
|
||||||
fn from(value: AuxMessage) -> Self {
|
fn from(value: AuxMessage) -> Self {
|
||||||
match value {
|
match value {
|
||||||
|
AuxMessage::Ping => 0xFF000000,
|
||||||
AuxMessage::Halt => 0xFF000001,
|
AuxMessage::Halt => 0xFF000001,
|
||||||
AuxMessage::Reboot => 0xFF000002,
|
AuxMessage::Reboot => 0xFF000002,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user