Aaeon EMB-A70M User Manual page 85

Mini-itx motherboard
Table of Contents

Advertisement

M i n i - I T X
************************************************************************************
AaeonReadPinStatus(byte Register, byte BitNum)
Boolean   
 
Boolean PinStatus ; 
 
 
PinStatus = DIOBitRead(Register, BitNum); 
 
Return PinStatus ; 
AaeonSetOutputLevel(byte Register, byte BitNum, byte Value)
VOID   
 
DIOBitSet(Register, BitNum, Value); 
DIOBitRead(byte Register, byte BitNum)
Boolean   
 
Byte TmpValue; 
 
 
TmpValue = IOReadByte(Register); 
 
TmpValue &= (1 << BitNum); 
 
If(TmpValue == 0) 
 
 
Return 0; 
 
Return 1; 
 
DIOBitSet(byte Register, byte BitNum, byte Value)
VOID   
 
Byte TmpValue; 
 
 
TmpValue = IOReadByte(Register); 
 
TmpValue &= ~(1 << BitNum); 
 
TmpValue |= (Value << BitNum); 
 
IOWriteByte(Register, TmpValue); 
************************************************************************************
Appendix D Electrical Specifications for I/O Ports
E M B - A 7 0 M
D-6

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EMB-A70M and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents