|
xpci3xxx 1.00.00
|
Macros | |
| #define | CMD_xpci3xxx_InitCounter _IOR(xpci3xxx_MAGIC, 100,long) |
| Initialize the counter. | |
| #define | CMD_xpci3xxx_ReleaseCounter _IOR(xpci3xxx_MAGIC, 101,long) |
| Stops and frees the counter. | |
| #define | CMD_xpci3xxx_StartCounter _IOR(xpci3xxx_MAGIC, 102,long) |
| Start the selected counter. | |
| #define | CMD_xpci3xxx_StartAllCounters _IOR(xpci3xxx_MAGIC, 103,long) |
| Start all initialized counters. | |
| #define | CMD_xpci3xxx_TriggerCounter _IOR(xpci3xxx_MAGIC, 104,long) |
| Triggers the selected counter. | |
| #define | CMD_xpci3xxx_TriggerAllCounters _IOR(xpci3xxx_MAGIC, 105,long) |
| Trigger all counters. | |
| #define | CMD_xpci3xxx_StopCounter _IOR(xpci3xxx_MAGIC, 106,long) |
| Stop the selected counter. | |
| #define | CMD_xpci3xxx_StopAllCounters _IOR(xpci3xxx_MAGIC, 107,long) |
| Stop all running counters. | |
| #define | CMD_xpci3xxx_ClearCounter _IOR(xpci3xxx_MAGIC, 108,long) |
| Clear the selected counter. | |
| #define | CMD_xpci3xxx_ReadCounterValue _IOR(xpci3xxx_MAGIC, 109,long) |
| Read the counters value. | |
| #define | CMD_xpci3xxx_ReadCounterStatus _IOR(xpci3xxx_MAGIC, 110,long) |
| Returns counter status. | |
| #define | CMD_xpci3xxx_EnableDisableCounterInterrupt _IOR(xpci3xxx_MAGIC, 111,long) |
| Enable/disable the counter interrupt. | |
| #define | CMD_xpci3xxx_EnableDisableCounterHardwareOutput _IOR(xpci3xxx_MAGIC, 112,long) |
| Enable/disable the hardware counter output. | |
| #define | CMD_xpci3xxx_GetCounterHardwareOutputStatus _IOR(xpci3xxx_MAGIC, 113,long) |
| Return the status of the hardware counter output. | |
| #define CMD_xpci3xxx_ClearCounter _IOR(xpci3xxx_MAGIC, 108,long) |
Clear the selected counter.
| [in] | uint8_t | *arg Selected counter number |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1476 of file xpci3xxx.h.
| #define CMD_xpci3xxx_EnableDisableCounterHardwareOutput _IOR(xpci3xxx_MAGIC, 112,long) |
Enable/disable the hardware counter output.
| [in] | uint8_t | arg[3] Parameters |
ADDIDATA_LOW : If the counter counter overflows, the output is set to low
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong Counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as watchdog already used |
| 6 | : Wrong output flag |
| 7 | : Wrong output level |
Definition at line 1551 of file xpci3xxx.h.
| #define CMD_xpci3xxx_EnableDisableCounterInterrupt _IOR(xpci3xxx_MAGIC, 111,long) |
Enable/disable the counter interrupt.
| [in] | uint8_t | arg[2] Parameters |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not initialized |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
| 6 | : Wrong interrupt flag |
| 7 | : Interrupt call-back not installed |
Definition at line 1530 of file xpci3xxx.h.
| #define CMD_xpci3xxx_GetCounterHardwareOutputStatus _IOR(xpci3xxx_MAGIC, 113,long) |
Return the status of the hardware counter output.
| [in,out] | uint8_t | arg[2] Parameter and result |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong Counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as watchdog already used |
Definition at line 1567 of file xpci3xxx.h.
| #define CMD_xpci3xxx_InitCounter _IOR(xpci3xxx_MAGIC, 100,long) |
Initialize the counter.
| [in] | uint32_t | arg[4] Parameters |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Wrong Counter number |
| 3 | : Counter as timer already used |
| 4 | : Counter as watchdog already used |
| 5 | : Wrong direction selection |
| 6 | : Wrong level selection |
| 7 | : Wrong reload value |
Definition at line 1377 of file xpci3xxx.h.
| #define CMD_xpci3xxx_ReadCounterStatus _IOR(xpci3xxx_MAGIC, 110,long) |
Returns counter status.
| [in,out] | uint8_t | arg[5] Parameter and result |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1512 of file xpci3xxx.h.
| #define CMD_xpci3xxx_ReadCounterValue _IOR(xpci3xxx_MAGIC, 109,long) |
Read the counters value.
| [in,out] | uint32_t | arg[2] Parameter and result |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1492 of file xpci3xxx.h.
| #define CMD_xpci3xxx_ReleaseCounter _IOR(xpci3xxx_MAGIC, 101,long) |
Stops and frees the counter.
If a counter has been initialized, it can be reinitialized again only if this command is called before.
| [in] | uint8_t | *b_CounterNumber Selected counter number |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1395 of file xpci3xxx.h.
| #define CMD_xpci3xxx_StartAllCounters _IOR(xpci3xxx_MAGIC, 103,long) |
Start all initialized counters.
| NULL | (ignored) |
| 0 | : Success |
| 1 | : Internal error |
Definition at line 1417 of file xpci3xxx.h.
| #define CMD_xpci3xxx_StartCounter _IOR(xpci3xxx_MAGIC, 102,long) |
Start the selected counter.
| [in] | uint8_t | *arg Selected counter number |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1408 of file xpci3xxx.h.
| #define CMD_xpci3xxx_StopAllCounters _IOR(xpci3xxx_MAGIC, 107,long) |
Stop all running counters.
| NULL | (ignored) |
| 0 | : Success |
| 1 | : Internal error |
Definition at line 1462 of file xpci3xxx.h.
| #define CMD_xpci3xxx_StopCounter _IOR(xpci3xxx_MAGIC, 106,long) |
Stop the selected counter.
| [in] | uint8_t | *arg Selected counter number |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1453 of file xpci3xxx.h.
| #define CMD_xpci3xxx_TriggerAllCounters _IOR(xpci3xxx_MAGIC, 105,long) |
Trigger all counters.
| NULL | (ignored) |
| 0 | : Success |
| 1 | : Internal error |
Definition at line 1440 of file xpci3xxx.h.
| #define CMD_xpci3xxx_TriggerCounter _IOR(xpci3xxx_MAGIC, 104,long) |
Triggers the selected counter.
| [in] | uint8_t | *arg : Selected counter number |
| 0 | : Success |
| 1 | : Internal error |
| 2 | : Counter not intialised |
| 3 | : Wrong counter number |
| 4 | : Counter as timer already used |
| 5 | : Counter as Watchdog already used |
Definition at line 1431 of file xpci3xxx.h.