Main – AAEON AEC-6977 User Manual

Page 111

Advertising
background image

E m b e d d e d C o n t r o l l e r

A E C - 6 9 7 7

Appendix D 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