Appendix C – Programming Digital I/O 82COM Express Module COM-SKUC6 & COM-KBUC6C.2 Digital I/O Sample Program************************************************************************************// Embedded BRAM relative definition (Please reference to Table 1)#define byte EcBRAMIndex //This parameter is represented from Note1#define byte EcBRAMData //This parameter is represented from Note2#define byte BRAMLDNReg //This parameter is represented from Note3#define byte BRAMFnData0Reg //This parameter is represented from Note4#define byte BRAMFnData1Reg //This parameter is represented from Note5#define void EcBRAMWriteByte(byte Offset, byte Value);#define byte EcBRAMReadByte(byte Offset);#define void IOWriteByte(byte Offset, byte Value);#define byte IOReadByte(byte Offset);// Digital Input Status relative definition (Please reference to Table 2)#define byte DIO0ToDIO7Reg // This parameter is represented from Note6#define byte DIO0Bit // This parameter is represented from Note7#define byte DIO1Bit // This parameter is represented from Note8#define byte DIO2Bit // This parameter is represented from Note9#define byte DIO3Bit // This parameter is represented from Note10#define byte DIO4Bit // This parameter is represented from Note11#define byte DIO5Bit // This parameter is represented from Note12#define byte DIO6Bit // This parameter is represented from Note13#define byte DIO7Bit // This parameter is represented from Note14#define byte DIO0Val // This parameter is represented from Note15#define byte DIO1Val // This parameter is represented from Note16#define byte DIO2Val // This parameter is represented from Note17#define byte DIO3Val // This parameter is represented from Note18#define byte DIO4Val // This parameter is represented from Note19#define byte DIO5Val // This parameter is represented from Note20#define byte DIO6Val // This parameter is represented from Note21#define byte DIO7Val // This parameter is represented from Note22************************************************************************************