2.5.7. ioctl FE_DISEQC_SEND_MASTER_CMD

2.5.7.1. Name

FE_DISEQC_SEND_MASTER_CMD - Sends a DiSEqC command

2.5.7.2. Synopsis

int ioctl(int fd, FE_DISEQC_SEND_MASTER_CMD, struct dvb_diseqc_master_cmd *argp)

2.5.7.3. Arguments

fd
File descriptor returned by open().
argp
pointer to struct dvb_diseqc_master_cmd

2.5.7.4. Description

Sends a DiSEqC command to the antenna subsystem.

dvb_diseqc_master_cmd
struct dvb_diseqc_master_cmd
uint8_t msg[6] DiSEqC message (framing, address, command, data[3])
uint8_t msg_len Length of the DiSEqC message. Valid values are 3 to 6

2.5.7.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.