Asus Aaeon NanoCOM-TGU User Manual page 94

Com express module
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents