Implementation of gpio access.
|
Functions |
| void | GPIOInit (SerialMode_t Mode) |
| | Initializes the GPIO module in the requested mode.
|
|
void | GPIOResetToFactory (void) |
| | Resets the GPIO module EEPROM section to well known start parameters.
|
| WORD | GPIOGetTCPPort (BOOL bPersistent) |
| | Delivers the current configured TCP port of the GPIO server.
|
| void | GPIOSetTCPPortPersistent (WORD Port) |
| | Configures a new TCP port for the GPIO server.
|
| BOOL | GPIOInitTask (void) |
| | After initializing network and application stuff the application should call this function to prepare task members needed for proper GPIO task operation.
|
| void | GPIOStopTask (void) |
| | On network errors or shut down events these function should be called by the main application to proper stop the GPIO tasks (i.e disconnecting a connected client).
|
| BOOL | bGPIOCheckForStoppedTask (void) |
| | Before shutting down the application should poll for valid GPIO task shutdown.
|
| void | GPIOTask (void) |
| | Call this function periodically from main application to execute GPIO module tasks.
|
| PortType_t | GPIOGetPortType (BYTE GPIOChannel) |
| | Delivers the current port configuration of a GPIO pin.
|
| BOOL | GPIOIsPortOverwritten (BYTE GPIOChannel) |
| | Delivers if the port is currently overwritten by an alternative pin (i.e serial).
|
| void | GPIOSetPortValue (BYTE GPIOChannel, BOOL Value) |
| | This function sets the state for a single IO pin.
|
| BOOL | GPIOGetPinValue (BYTE GPIOChannel) |
| | This function reads the state from a single IO pin.
|
| GPIOServerConnection_t | GPIOGetServerState (void) |
| | This function delivers the current state of the GPIO server.
|
| DWORD | GPIOGetConnectedIP (void) |
| | Delivers the IP of a client who is connected to GPIO server.
|
| void | GPIOSetAllPinValues (WORD NewValue) |
| | Use this function to write to all pins at once.
|
| BOOL | GPIOServerIsActivated (void) |
| | Getter for activated GPIO server.
|
| void | GPIOActivateServerPersistent (BOOL Activate) |
| | Setter for GPIO server state.
|
| ROM BYTE * | GPIOGetPortName (BYTE Channel) |
| | Delivers the port alias name for the given channel.
|
| void | GPIOSetPortType (BYTE Channel, PortType_t PortType) |
| | Sets the port mode of a GPIO channel.
|
| BOOL | GPIOGetStartupValue (BYTE Channel) |
| | Delivers the startup value for a given channel.
|
| void | GPIOSetStartupValue (BYTE Channel, BOOL Value) |
| | Configures the startup value for binary output configured values.
|
| void | GPIOFlushToEEPROM (void) |
| | All prior changed values are persistently written to EEPROM.
|
| void | GPIOConfigurePort (BYTE Channel) |
| | Call this function for a given channel to reconfigure the port and all other peripherals associated with the new port function.
|