ClearCore Library
|
ClearCore input state access.
Provides consolidated access to the input state of all of the ClearCore connectors.
ClearCore input state access. More...
#include <InputManager.h>
Public Types | |
enum | InterruptTrigger { NONE = -1 , LOW = 0 , HIGH = 1 , CHANGE = 2 , FALLING = 3 , RISING = 4 } |
The possible input state conditions to trigger an interrupt on. | |
Public Member Functions | |
SysConnectorState | InputsRisen (SysConnectorState mask=UINT32_MAX) |
Clear on read accessor for inputs that have risen (transitioned from deasserted to asserted) sometime since the previous invocation of this function. | |
SysConnectorState | InputsFallen (SysConnectorState mask=UINT32_MAX) |
Clear on read accessor for inputs that have fallen (transitioned from asserted to deasserted) sometime since the previous invocation of this function. | |
SysConnectorState | InputsRT (SysConnectorState mask=UINT32_MAX) |
Current state of the on-board ClearCore inputs. | |
void | InterruptsEnabled (bool enable) |
Enable or disable digital interrupts board-wide. | |
bool | InterruptsEnabled () |
Current enable state of digital interrupts. | |
SysConnectorState ClearCore::InputManager::InputsFallen | ( | SysConnectorState | mask = UINT32_MAX | ) |
Clear on read accessor for inputs that have fallen (transitioned from asserted to deasserted) sometime since the previous invocation of this function.
[in] | mask | (optional) A SysConnectorState whose asserted bits indicate which of the ClearCore inputs to check for falling edges. If one of the bit members of this mask are deasserted, that bit will be ignored when checking for falling edges. If no mask is provided, it's equivalent to passing a SysConnectorState with all bits asserted, in which case this function would report falling edges on any of the ClearCore inputs. |
SysConnectorState ClearCore::InputManager::InputsRisen | ( | SysConnectorState | mask = UINT32_MAX | ) |
Clear on read accessor for inputs that have risen (transitioned from deasserted to asserted) sometime since the previous invocation of this function.
[in] | mask | (optional) A SysConnectorState whose asserted bits indicate which of the ClearCore inputs to check for rising edges. If one of the bit members of this mask are deasserted, that bit will be ignored when checking for rising edges. If no mask is provided, it's equivalent to passing a SysConnectorState with all bits asserted, in which case this function would report rising edges on any of the ClearCore inputs. |
SysConnectorState ClearCore::InputManager::InputsRT | ( | SysConnectorState | mask = UINT32_MAX | ) |
Current state of the on-board ClearCore inputs.
[in] | mask | (optional) A SysConnectorState whose asserted bits indicate which of the ClearCore inputs to check for falling edges. If one of the bit members of this mask are deasserted, that bit will be ignored when checking for falling edges. If no mask is provided, it's equivalent to passing a SysConnectorState with all bits asserted, in which case this function would report falling edges on any of the ClearCore inputs. |
|
inline |
Current enable state of digital interrupts.
void ClearCore::InputManager::InterruptsEnabled | ( | bool | enable | ) |
Enable or disable digital interrupts board-wide.