Your cart is currently empty!
Applicable Model(s)
IPC2210A
Title
IPC2210A GPIO Controller Driver Basics
Date
03/29/2024
Rev
00
P/N
0907-1149
Summary
This document describes the method used to test the GPIO port pins on the Maple Systems IPC2210A with the Linux Operating System. This method will use a GPIO controller driver utilizing the EAPI API made specifically for the IPC2210A.
NOTE: Your Linux operating system should be on the 6.5.0-26-generic kernel version or better.
Solution
1.
Confirm the GPIO controller driver has been successfully installed
a.
Navigate to /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7 directory
a.
Confirm that the files are present in the EApi_innodisk_sample_1.1.7 directory as show in the following screenshot:

2.
Navigating to the EApi_innodisk_sample_1.1.7 directory in the Linux terminal
a.
Press Ctrl+Alt+T to open a Linux terminal
b.
Inside the Linux terminal change directory to the EApi_innodisk_sample_1.1.7 directory using the command:
cd /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7
3.
Confirm your present working directory by entering the following command into the Linux terminal:
pwd

NOTE: Confirm the pwd path is /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7
4.
To access the help and usage documentation for the GPIO driver, enter the following command into the linux terminal while in the /home/user/Documents/Linux/EApi_innodisk_sample_1.1.7 directory:
sudo ./EApi_test -h

5.
Enter the following command for diagnostic information about the Linux PC:
sudo ./EApi_Test

6.
Enter the following commands to test GPIO driver functionality:
a.
Turning GPIO port #0 to be “output” mode with “low level” volt enter the following command:
sudo ./EApi_test -g 0 -d 0 -v 0

b.
Turning GPIO port #0 to be “output” mode with “high level” volt enter the following command:
sudo ./EApi_Test -g 0 -d 0 -v 1

c.
Turning GPIO port #0 to be “input” mode with “high level” volt enter the following command:
sudo ./EApi_Test -g 0 -d 1

d.
Turning GPIO port #0 to be “input” mode with “low level” cannot be accomplished as an input must remain “high level” volt to access data from outputs and will return the following screenshot below:
