Asus AAEON COM-BYTC2 User Manual page 88

Com express module
Table of Contents

Advertisement

************************************************************************************
Boolean A aeonReadPinStatus(byte OptionReg, byte BitNum) {
Byte TempByte;
TempByte = ECBRAMReadByte(BRAMFnData1Reg, OptionReg);
If (TempByte & BitNum == 0)
Return 0;
Return 1;
}
VOID A aeonSetOutputLevel(byte OptionReg, byte BitNum, byte Value){
Byte TempByte;
TempByte = ECBRAMReadByte(BRAMFnData1Reg, OptionReg);
TempByte |= (Value << BitNum);
ECBRAMWriteByte(OptionReg, BitNum, Value);
}
************************************************************************************
Appendix C – Programming Digital I/O
76

Advertisement

Table of Contents
loading

Table of Contents