IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page

Enumerations | Functions
GPIO - General Purpuse Inputs Outputs API

Detailed Description

The following functions are provided to control the general purpose inputs and outputs of the IPC@CHIP®.


enum  GPIO_MODES {
  PIO_DIS = 0,
  PIO_I = 1,
  PIO_IPU = 2,
  PIO_IPD = 3,
  PIO_O1 = 4,
  PIO_O0 = 5,
  PIO_OC1 = 6,
  PIO_OC0 = 7
 GPIO modes. More...


int gpioReadInput (int pioNumber)
 Read GPIO input value. More...
int gpioWriteOutput (int pioNumber, int value)
 Write GPIO output value. More...
int gpioReadOutput (int pioNumber)
 Read GPIO output value. More...
int gpioEnable (int pioNumber, BOOL state)
 Enable pin as GPIO. More...
int gpioSetMode (int pioNumber, GPIO_MODES mode)
 Set GPIO mode (input/output/opendrain). More...
GPIO_MODES gpioGetMode (int pioNumber)
 Get GPIO mode (input/output). More...
int gpioSetIntMode (int pioNumber, int mode)
 Set GPIO interrupt mode. More...
int gpioReadBankInputs (unsigned int bank, unsigned int *value, unsigned int mask)
 Read a whole bank of GPIO inputs. More...
int gpioReadBankOutputs (unsigned int bank, unsigned int *value, unsigned int mask)
 Read back the value of a whole bank of GPIO outputs. More...
int gpioWriteBankOutputs (unsigned int bank, unsigned int value, unsigned int mask)
 Write to a bank of GPIO outputs. More...

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13