Menu

getInput

functions (4)
Majenko Technologies

Format: unsigned long long getInput(struct device * dev, char * name)

Parameters:

  • dev : Pointer to the device structure for this instance.
  • name : Name of the input to read.

This function gets the current value from the bus that an input is attached to. It iterates the busses to find the ones the named input is connected to. The value of the first bus is found. If no bus is found then NULL is returned.