Main – AAEON EMB-QM87A User Manual

Page 110

Advertising
background image

M i n i - I T X

E M B - Q M 8 7 A

Appendix E Electrical Specifications for I/O Ports

D-6

************************************************************************************
VOID   

Main

(){ 

 

Boolean PinStatus ; 

 

 

// Procedure : AaeonReadPinStatus 

 

// Input : 

 

// 

Example, Read Digital I/O Pin 3 status 

// Output : 

// 

InputStatus : 

// 

 

0: Digital I/O Pin level is low 

// 

 

1: Digital I/O Pin level is High 

 

PinStatus = AaeonReadPinStatus(DInput3LDNDInput3RegDInput3Bit); 

 

 

// Procedure : AaeonSetOutputLevel 

 

// Input : 

 

// 

Example, Set Digital I/O Pin 6 level

 

 

AaeonSetOutputLevel(DOutput6LDNDOutput6RegDOutput6Bit, DOutput6Val); 

}

************************************************************************************

Advertising