Main Site Documentation

Manipulating digital IO using EMX and RLP


#1

Hi,

I am trying switch digital IO in RLP mode. I’ve been through the proceedure described in the tutorial for using RLP with the Keil demo software. I anticipate that it will be a very small bit of code. I can’t find, or, at least, don’t understand the existing bits of code which do this and I was wondering if somebody could point me in the right direction by showing me an example line if code which simply sets a pin or clears one and also let me know which header files I need.

Thanks very much.


#2

That demo uses RLPLite not RLP.

Look for RLP extensions in RLP documentations.


#3

Sets a pin as output, PinNumber being the pin.

RLPext->GPIO.EnableOutputMode(PinNumber,0);

Writes a value of 1 to a pin:

RLPext->GPIO.WritePin(PinNumber,1);

You can look in the RLP help files for more info. See the bottom of this page:
http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/Index.html