Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Macros | Functions
monitor.h File Reference
#include <stdint.h>
Include dependency graph for monitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MON_PING   0x01
 
#define MON_READ_MEM   0x02
 
#define MON_WRITE_MEM   0x03
 
#define MON_GET_REGS   0x04
 
#define MON_SET_REG   0x05
 
#define MON_SET_BP   0x06
 
#define MON_CLR_BP   0x07
 
#define MON_LOAD   0x08
 
#define MON_RUN   0x09
 
#define MON_CONT   0x0A
 
#define MON_STOP   0x0B
 
#define MON_STEP   0x0C /* reserved / deferred */
 
#define MON_SET_BAUD   0x0D /* SIO1 line rate, design section 2a */
 
#define MON_LZ4   0x8000
 
#define MON_CAP_LZ4   0x0001
 
#define MON_CAP_STOP   0x0002
 
#define MON_CAP_SLOT   0x0004
 
#define MON_ACK   0x40
 
#define MON_DATA   0x41
 
#define MON_REGS   0x42
 
#define MON_PONG   0x43
 
#define MON_ERROR   0x4F
 
#define MON_HELLO   0x80
 
#define MON_STOPPED   0x81
 
#define MON_EBADCMD   0x01
 
#define MON_EBADSTATE   0x02
 
#define MON_EBADADDR   0x03
 
#define MON_EBADREG   0x04
 
#define MON_EBADLEN   0x05
 
#define MON_ECKSUM   0x06
 
#define MON_ENOFD   0x07
 
#define MON_EDECODE   0x08
 
#define MON_STOP_BREAKPOINT   0x01
 
#define MON_STOP_INTERRUPT   0x02
 
#define MON_STOP_DATA_WATCH   0x03
 
#define MON_STOP_FAULT   0x04
 
#define MON_PROTO_VER   0x0002
 

Functions

void monitorMain (void) __attribute__((noreturn))
 

Macro Definition Documentation

◆ MON_ACK

#define MON_ACK   0x40

◆ MON_CAP_LZ4

#define MON_CAP_LZ4   0x0001

◆ MON_CAP_SLOT

#define MON_CAP_SLOT   0x0004

◆ MON_CAP_STOP

#define MON_CAP_STOP   0x0002

◆ MON_CLR_BP

#define MON_CLR_BP   0x07

◆ MON_CONT

#define MON_CONT   0x0A

◆ MON_DATA

#define MON_DATA   0x41

◆ MON_EBADADDR

#define MON_EBADADDR   0x03

◆ MON_EBADCMD

#define MON_EBADCMD   0x01

◆ MON_EBADLEN

#define MON_EBADLEN   0x05

◆ MON_EBADREG

#define MON_EBADREG   0x04

◆ MON_EBADSTATE

#define MON_EBADSTATE   0x02

◆ MON_ECKSUM

#define MON_ECKSUM   0x06

◆ MON_EDECODE

#define MON_EDECODE   0x08

◆ MON_ENOFD

#define MON_ENOFD   0x07

◆ MON_ERROR

#define MON_ERROR   0x4F

◆ MON_GET_REGS

#define MON_GET_REGS   0x04

◆ MON_HELLO

#define MON_HELLO   0x80

◆ MON_LOAD

#define MON_LOAD   0x08

◆ MON_LZ4

#define MON_LZ4   0x8000

◆ MON_PING

#define MON_PING   0x01

◆ MON_PONG

#define MON_PONG   0x43

◆ MON_PROTO_VER

#define MON_PROTO_VER   0x0002

◆ MON_READ_MEM

#define MON_READ_MEM   0x02

◆ MON_REGS

#define MON_REGS   0x42

◆ MON_RUN

#define MON_RUN   0x09

◆ MON_SET_BAUD

#define MON_SET_BAUD   0x0D /* SIO1 line rate, design section 2a */

◆ MON_SET_BP

#define MON_SET_BP   0x06

◆ MON_SET_REG

#define MON_SET_REG   0x05

◆ MON_STEP

#define MON_STEP   0x0C /* reserved / deferred */

◆ MON_STOP

#define MON_STOP   0x0B

◆ MON_STOP_BREAKPOINT

#define MON_STOP_BREAKPOINT   0x01

◆ MON_STOP_DATA_WATCH

#define MON_STOP_DATA_WATCH   0x03

◆ MON_STOP_FAULT

#define MON_STOP_FAULT   0x04

◆ MON_STOP_INTERRUPT

#define MON_STOP_INTERRUPT   0x02

◆ MON_STOPPED

#define MON_STOPPED   0x81

◆ MON_WRITE_MEM

#define MON_WRITE_MEM   0x03

Function Documentation

◆ monitorMain()

void monitorMain ( void  )