Main – AAEON EMB-A70M User Manual

Page 84

Advertising
background image

M i n i - I T X

E M B - A 7 0 M

Appendix D Electrical Specifications for I/O Ports

D-5

************************************************************************************
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(DIO3RegDIO3Bit); 

 

 

// Procedure : AaeonSetOutputLevel 

 

// Input : 

 

// 

Example, Set Digital I/O Pin 6 level

 

 

AaeonSetOutputLevel(DIO6RegDIO6Bit, DIO6Val); 

}

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

Advertising