This shows you the differences between two versions of the page.
technical_information [2018/08/29 16:06] giometti created |
technical_information [2018/08/30 18:25] giometti Add proper page's header |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== RFC considerations ====== | + | ====== Technical Information ====== |
+ | |||
+ | ===== RFC considerations ===== | ||
While implementing a PPS API as RFC 2783 defines and using an embedded | While implementing a PPS API as RFC 2783 defines and using an embedded | ||
Line 26: | Line 28: | ||
into files ''/dev/pps0'', ''/dev/pps1'', etc. | into files ''/dev/pps0'', ''/dev/pps1'', etc. | ||
- | ====== PPS with USB to serial devices ====== | + | ===== PPS with USB to serial devices ===== |
It is possible to grab the PPS from an USB to serial device. However, | It is possible to grab the PPS from an USB to serial device. However, | ||
Line 42: | Line 44: | ||
ch341 and pl2303 examples). | ch341 and pl2303 examples). | ||
- | ====== Coding example ====== | + | ===== Coding example ===== |
To register a PPS source into the kernel you should define a ''struct | To register a PPS source into the kernel you should define a ''struct | ||
Line 87: | Line 89: | ||
Please see the file ''drivers/pps/clients/pps-ktimer.c'' for example code. | Please see the file ''drivers/pps/clients/pps-ktimer.c'' for example code. | ||
- | ====== SYSFS support ====== | + | ===== SYSFS support ===== |
If the SYSFS filesystem is enabled in the kernel it provides a new class: | If the SYSFS filesystem is enabled in the kernel it provides a new class: | ||
Line 117: | Line 119: | ||
PPS source is connected to (if it exists). | PPS source is connected to (if it exists). | ||
- | ====== Testing the PPS support ====== | + | ===== Testing the PPS support ===== |
In order to test the PPS support even without specific hardware you can use | In order to test the PPS support even without specific hardware you can use | ||
Line 142: | Line 144: | ||
This is available in the **pps-tools** repository mentioned above. | This is available in the **pps-tools** repository mentioned above. | ||
- | ====== Generators ====== | + | ===== Generators ===== |
Sometimes one needs to be able not only to catch PPS signals but to produce | Sometimes one needs to be able not only to catch PPS signals but to produce |