General Purpose Lines Control Api - Motorola Mobile Workstation 520 Application Developer's Manual

Table of Contents

Advertisement

38
MW-520 Application Developer's Guide

General Purpose Lines Control API

The following API refers to the MW-520 hardware driver from versions
7.0.0.15 (Windows 2000), and 6.0.5.98 (Windows 98 and Windows
Me) only.
Note
GPIO Line 3 is an internal line (it does not connect to the auxiliary
port).
Note
ReadGPIOLine
BOOL APIENTRY ReadGPIOLine
Purpose
Reads the state of a single GPIO line.
Input
[out] PBYTE pValue - pointer to the byte variable in which to
place the read state of the GPIO line. Legal values for this
parameter are 0 and 1.
[in] BYTE Line - number of the GPIO line whose state is to be
read. Legal values for this parameter are 0, 1, 2 and 3.
[in] BOOL status - set line direction to read if status=0
Output
The value level of the requested line.
Returned Value BOOL value: TRUE - success, FALSE - failure
WriteGPIOLine
BOOL APIENTRY WriteGPIOLine
Purpose
Sets the state of a single GPIO line.
Input
[in] BYTE Value - the byte value that indicates a new state for
the GPIO line. Legal values for this parameter are 0 and 1.
[in] BYTE Line - number of the GPIO line whose state is to be
set. Legal values for this parameter are 0, 1, 2 and 3.
Output
None
Returned Value BOOL value: TRUE - success, FALSE - failure
(PBYTE pValue, BYTE Line, BOOL status)
(BYTE Value, BYTE Line)

Advertisement

Table of Contents
loading

This manual is also suitable for:

F5203F5205

Table of Contents