Originally authored by Bruce McKenny
Definition in file icp.h.
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | _AVR135_ICP_H_ 1 |
| #define | ICP_ANALOG 1 |
| #define | ICP_BUFSIZE 1 |
| #define | ICP_RX_QSIZE ICP_BUFSIZE |
| #define | ICP_SCALE 256U |
Typedefs | |
| typedef unsigned char | icp_sample_t |
| typedef unsigned int | icp_total_t |
Functions | |
| void | icp_init (void) |
| icp_sample_t | icp_rx (void) |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 30 of file icp.h. Referenced by icp_rx(). |
|
|
Definition at line 35 of file icp.h. Referenced by TIMER1_COMPA(). |
|
|
|
|
|
|
|
|
Set up the ICP timer. Definition at line 328 of file icp.c. References ICP_CTL, ICP_CTL_A, ICP_IE, ICP_OC_IE, ICP_OCR, ICP_PRESCALE, and ICP_START_SENSE. Referenced by main(). |
|
|
Fetch a sample from the queue. For analog mode, this is a moving average of the last QSIZE readings. For digital, it is the oldest reading. Definition at line 298 of file icp.c. References ICP_RX_QSIZE, icp_rx_tail, and icp_total. Referenced by main(). |
1.4.4