PSXSDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
psxsio.h
Go to the documentation of this file.
1 #ifndef _PSXSIO_H
2 #define _PSXSIO_H
3 
7 {
16 };
17 
21 {
30 };
31 
35 {
42 };
43 
47 {
54 };
55 
57 #define SIO_TX_RX *((volatile unsigned char*)0x1F801050)
58 
59 #define SIO_STAT *((volatile unsigned short*)0x1F801054)
60 
61 #define SIO_MODE *((volatile unsigned short*)0x1F801058)
62 
63 #define SIO_CTRL *((volatile unsigned short*)0x1F80105A)
64 
65 #define SIO_BPSV *((volatile unsigned short*)0x1F80105E)
66 
67 
73 void SIOStart(int bitrate);
74 
86 void SIOStartEx(int bitrate, int datalength, int parity, int stopbit);
87 
91 void SIOStop(void);
92 
97 unsigned char SIOReadByte(void);
98 
103 void SIOSendByte(unsigned char data);
104 
110 int SIOCheckInBuffer(void);
111 
117 int SIOCheckOutBuffer(void);
118 
119 
120 
121 #endif