technical_information
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| technical_information [2025/02/24 08:59] – [Generators] giometti | technical_information [2025/02/24 09:02] (current) – [Parallel port generator] giometti | ||
|---|---|---|---|
| Line 151: | Line 151: | ||
| To do so the class pps-gen has been added. PPS generators can be | To do so the class pps-gen has been added. PPS generators can be | ||
| - | registered in the kernel by defining a struct pps_gen_source_info as | + | registered in the kernel by defining a '' |
| - | follows:: | + | follows: |
| static struct pps_gen_source_info pps_gen_dummy_info = { | static struct pps_gen_source_info pps_gen_dummy_info = { | ||
| Line 161: | Line 161: | ||
| }; | }; | ||
| - | Where the use_system_clock states if the generator uses the system | + | Where the '' |
| clock to generate its pulses, or they are from a peripheral device | clock to generate its pulses, or they are from a peripheral device | ||
| - | clock. Method get_time() is used to query the time stored into the | + | clock. Method |
| - | generator clock, while the method enable() is used to enable or | + | generator clock, while the method |
| disable the PPS pulse generation. | disable the PPS pulse generation. | ||
| - | Then calling the function pps_gen_register_source() in your | + | Then calling the function |
| initialization routine as follows creates a new generator in the | initialization routine as follows creates a new generator in the | ||
| - | system:: | + | system: |
| pps_gen = pps_gen_register_source(& | pps_gen = pps_gen_register_source(& | ||
| Line 175: | Line 175: | ||
| ===== Generators SYSFS support ===== | ===== Generators 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: |
| $ ls / | $ ls / | ||
| Line 181: | Line 181: | ||
| Every directory is the ID of a PPS generator defined in the system and | Every directory is the ID of a PPS generator defined in the system and | ||
| - | inside of it you find several files:: | + | inside of it you find several files: |
| $ ls -F / | $ ls -F / | ||
| dev enable | dev enable | ||
| - | To enable the PPS signal generation you can use the command below:: | + | To enable the PPS signal generation you can use the command below: |
| $ echo 1 > / | $ echo 1 > / | ||
| Line 198: | Line 198: | ||
| ports, for example. | ports, for example. | ||
| - | Parallel port cable pinout:: | + | Parallel port cable pinout: |
| pin | pin | ||
| Line 231: | Line 231: | ||
| latencies. But if it is too small slave won't be able to capture clear edge | latencies. But if it is too small slave won't be able to capture clear edge | ||
| transition. The default of 30us should be good enough in most situations. | transition. The default of 30us should be good enough in most situations. | ||
| - | The delay can be selected using ' | + | The delay can be selected using ''delay'' pps_gen_parport module parameter. |
technical_information.1740387594.txt.gz · Last modified: by giometti
