src/spartan-edge-ioex.cpp
/* read a bit form port input data */
read a bit form port input data
read a bit form port input data
unsigned spartan_edge_ioex::readGpioInputDataBit(unsigned GPIO_Port, unsigned GPIO_Pin) {
  unsigned v = 0;
  v = regRead(GPIO_Port + 2);
  return ((v >> GPIO_Pin) & 0x01);
}
unsigned spartan_edge_ioex :: readGpioInputDataBit ( unsigned GPIO_Port , unsigned GPIO_Pin ) { unsigned v = 0 ; v = regRead ( GPIO_Port + 2 ) ; return ( ( v >> GPIO_Pin ) & 0x01 ) ; }
read a bit form port input data
read a bit form port input data