Gpio Controls - HID Lumidigm M Series Mechanical Integration Manual

Table of Contents

Advertisement

Lumidigm M-Series M3xx Modules Mechanical Integration Guide, PLT-02217, Rev. A.0
3.5.2

GPIO Controls

User LEDs can be turned on/off on for M31x products. Sample code follows. "First"
corresponds to the MH7 control, "Second" corresponds to the MH9 control. These controls
are GPIO ports on a Xilinx part; 3.3V for VOH. "ON" means the output is low; when an LED
is connected between this port and 5V, current will flow. Note that the forward voltage
drop of a red LED (0.7V) is not adequate for the output to turn the LED fully off in the HI
state; an additional diode drop in series is recommended.
uchar mask = 0x00;
rc = V100_Get_GPIO(pDev, mask);
mask = 0x01;
rc = V100_Set_GPIO(pDev, mask);
Sleep(500);
mask = 0x00;
rc = V100_Set_GPIO(pDev, mask);
mask = 0x02;
rc = V100_Set_GPIO(pDev, mask);
Sleep(500);
mask = 0x00;
rc = V100_Set_GPIO(pDev, mask);
mask = 0x03;
rc = V100_Set_GPIO(pDev, mask);
Sleep(500);
mask = 0x00;
rc = V100_Set_GPIO(pDev, mask);
December 2014
// Get the mask
// First on
// Turn off All
// Second on
// Turn off All
// First and Second on
// Turn off All
0001
0010
0011
Page 18 of 28

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lumidigm m3 series

Table of Contents