_____________________________________________________________________
Cybernet iOne-Medical PC Appendix
A
Appendix
A.
GPIO Function
This code and information is provided
“
as is
”
without warranty
of any kind, either expressed or implied, including but not
limited to the implied warranties of merchantability and/or
fitness for a particular purpose.
Sample code:
write data to GPO
main()
{
int DATA;
……
init_gpio();
write_gpo(DATA); /* DATA[0] = GPO1, DATA[1] =
GPO2, ……, DATA[7] = GPO8 */
}
read GPI
main()
{
int DATA;
init_gpio();
DATA = read_gpi();
/* DATA[0] = GPI1, DATA[1] =
GPI2, ……, DATA[7] = GPI8 */
}
Summary of Contents for iOne-MP171
Page 8: ...vii...