5.3.4. ioctls LIRC_GET_SEND_MODE and LIRC_SET_SEND_MODE

5.3.4.1. Name

LIRC_GET_SEND_MODE/LIRC_SET_SEND_MODE - Get/set supported transmit mode.

5.3.4.2. Synopsis

int ioctl(int fd, LIRC_GET_SEND_MODE, __u32 *tx_modes)
int ioctl(int fd, LIRC_SET_SEND_MODE, __u32 *tx_modes)

5.3.4.3. Arguments

fd
File descriptor returned by open().
tx_modes
Bitmask with the supported transmit modes.

5.3.4.4. Description

Get/set supported transmit mode.

Only LIRC_MODE_PULSE is supported by for IR send.

5.3.4.5. Return Value

On success 0 is returned, on error -1 and the errno variable is set appropriately. The generic error codes are described at the Generic Error Codes chapter.