diff options
Diffstat (limited to 'man4/lirc.4')
-rw-r--r-- | man4/lirc.4 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/man4/lirc.4 b/man4/lirc.4 index ae1caafcf..398b5fcbf 100644 --- a/man4/lirc.4 +++ b/man4/lirc.4 @@ -33,7 +33,7 @@ This type of hardware can also be used in .B LIRC_MODE_SCANCODE mode, in which case the kernel IR decoders will decode the IR. These decoders can be written in extended BPF (see -.BR bpf (2)) +.MR bpf 2 ) and attached to the .B lirc device. @@ -46,7 +46,7 @@ features. .\" .SS Reading input with the LIRC_MODE_MODE2 mode In the \fBLIRC_MODE_MODE2 mode\fR, the data returned by -.BR read (2) +.MR read 2 provides 32-bit values representing a space or a pulse duration. The time of the duration (microseconds) is encoded in the lower 24 bits. Pulse (also known as flash) @@ -82,7 +82,7 @@ and as a result data is missing .SS Reading input with the LIRC_MODE_SCANCODE mode In the \fBLIRC_MODE_SCANCODE\fR mode, the data returned by -.BR read (2) +.MR read 2 reflects decoded button presses, in the struct \fIlirc_scancode\fR. The scancode is stored in the \fIscancode\fR field, and the IR protocol is stored in \fIrc_proto\fR. @@ -90,17 +90,17 @@ This field has one the values of the \fIenum rc_proto\fR. .\" .SS Writing output with the LIRC_MODE_PULSE mode The data written to the character device using -.BR write (2) +.MR write 2 is a pulse/space sequence of integer values. Pulses and spaces are only marked implicitly by their position. The data must start and end with a pulse, thus it must always include an odd number of samples. The -.BR write (2) +.MR write 2 function blocks until the data has been transmitted by the hardware. If more data is provided than the hardware can send, the -.BR write (2) +.MR write 2 call fails with the error .BR EINVAL . .SS Writing output with the LIRC_MODE_SCANCODE mode @@ -121,7 +121,7 @@ int ioctl(int fd, int cmd, int *val); .fi .P The following -.BR ioctl (2) +.MR ioctl 2 operations are provided by the .B lirc character device to probe or change specific @@ -221,7 +221,7 @@ are reserved for future use. Some devices have internal timers that can be used to detect when there has been no IR activity for a long time. This can help -.BR lircd (8) +.MR lircd 8 in detecting that an IR signal is finished and can speed up the decoding process. These operations |