Digital I/O Sample Program - Asus AAEON COM-BYTC2 User Manual

Com express module
Table of Contents

Advertisement

C.2 Di gital I/O Sample Program
************************************************************************************
// Embedded BRAM relative definition (Please reference to Table 1)
#d efine byte EcBRAMIndex //This parameter is represented from N o te1
#d efine byte EcBRAMData //This parameter is represented from N ote2
#d efine byte BRAMLDNReg //This parameter is represented from N o te3
#d efine byte BRAMFnData0Reg //This parameter is represented from N o te4
#d efine byte BRAMFnData1Reg //This parameter is represented from N o te5
#d efine vo id EcBRAMWriteByte(byte Offset, b yte Value);
#d efine b yte EcBRAMReadByte(byte Offset);
#d efine vo id IOWriteByte(b yte Offset, b yte Value);
#d efine b yte IOReadByte(b yte Offset);
// Digital Input Status relative definition (Please reference to Table 2)
#d efine byte DIO0ToDIO7Reg // This parameter is represented from N o te6
#d efine byte DIO0Bit // This parameter is represented from N o te7
#d efine byte DIO1Bit // This parameter is represented from N o te8
#d efine byte DIO2Bit // This parameter is represented from N o te9
#d efine byte DIO3Bit // This parameter is represented from N o te10
#d efine byte DIO4Bit // This parameter is represented from N o te11
#d efine byte DIO5Bit // This parameter is represented from N o te12
#d efine byte DIO6Bit // This parameter is represented from N o te13
#d efine byte DIO7Bit // This parameter is represented from N o te14
#d efine byte DIO0Val // This parameter is represented from N o te15
#d efine byte DIO1Val // This parameter is represented from N o te16
#d efine byte DIO2Val // This parameter is represented from N o te17
#d efine byte DIO3Val // This parameter is represented from N o te18
#d efine byte DIO4Val // This parameter is represented from N o te19
#d efine byte DIO5Val // This parameter is represented from N o te20
#d efine byte DIO6Val // This parameter is represented from N o te21
#d efine byte DIO7Val // This parameter is represented from N ote22
************************************************************************************
Appendix C – Programming Digital I/O
74

Advertisement

Table of Contents
loading

Table of Contents