An interface to manage and simplify the value(with edge-checking) of incoming digital-signal groups.
More...
|
|
#define | QREG_8BIT |
| | To define a register size of 8-bits for an Edge-Check instance.
|
| |
|
#define | QREG_16BIT |
| | To define a register size of 16-bits for an Edge-Check instance.
|
| |
|
#define | QREG_32BIT |
| | To define a register size of 32-bits for an Edge-Check instance.
|
| |
|
|
typedef qBool_t(* | qCoreRegSize_t) (const void *arg1, qBool_t arg2) |
| | A typedef to specify the I/O register size.
|
| |
An interface to manage and simplify the value(with edge-checking) of incoming digital-signal groups.
◆ qEdgeCheck_Add_Node()
Add an input node to the Edge-Check instance.
- Parameters
-
| [in] | ec | A pointer to the I/O Edge-Check object |
| [in] | n | A pointer to the Input-Node object |
| [in] | portAddress | The address of the core PORTx-register to read the levels of the specified PinNumber |
| [in] | pinNumber | The specified Pin to read from PortAddress |
- Returns
- qTrue on success. Otherwise qFalse.
◆ qEdgeCheck_Get_NodeStatus()
Query the status of the specified input-node.
- Parameters
-
| [in] | n | A pointer to the Input-Node object |
- Returns
- The status of the input node : qTrue, qFalse, qRising, qFalling or qUnknown.
◆ qEdgeCheck_Set_NodePin()
Set/Change the pin number for the provided node.
- Parameters
-
| [in] | n | A pointer to the Input-Node object. |
| [in] | pinNumber | The specified Pin to read from PortAddress. |
- Returns
- qTrue on success. Otherwise qFalse.
◆ qEdgeCheck_Setup()
Initialize a I/O Edge-Check instance.
- Parameters
-
| [in] | ec | A pointer to the I/O Edge-Check object |
| [in] | rSize | The specific-core register size: QREG_8BIT, QREG_16BIT or QREG_32BIT(Default) |
| [in] | debounceTime | The specified time to bypass the bounce of the input nodes |
- Returns
- qTrue on success. Otherwise qFalse.
◆ qEdgeCheck_Update()
Update the status of all nodes inside the I/O Edge-Check instance (Non-Blocking call).
- Parameters
-
| [in] | ec | A pointer to the I/O Edge-Check object |
- Returns
- qTrue on success. Otherwise qFalse.