Digital I/O Sample Program - Aaeon ?COM-BT Manual

Smarc module
Table of Contents

Advertisement

μ C O M - B T
S M AR C M o d u l e
C.1 Digital I/O Sample Program
************************************************************************************
BASE: 0xFED0C000h
Pin 0: BASE+4D0h+08h
Pin 1: BASE +4F0h+08h
Pin 2: BASE +530h+08h
Pin 3: BASE +4E0h+08h
Pin 5: BASE +0A0h+08h
Pin 6: BASE +0B0h+08h
Pin 7: BASE +510h+08h
Pin 8: BASE +500h+08h
Pin 9: BASE +520h+08h
Pin 10: BASE +050h+08h
Pin 11: BASE +030h+08h
SAMPLE CODE
//For Pin0
#define PAD_VAL_REG 0x8
DWORD dwBaseAddr = 0xFED0C4D0; // Depend on which pin
HRESULT DioPinGetDirection( BOOL* pbInput )
{
//bit = 1 if input, bit = 0 if output
C-2
Appendix D Electrical Specifications for I/O Ports

Advertisement

Table of Contents
loading

Table of Contents