pub struct FeDevice { /* private fields */ }
Expand description

A reference to the frontend device and device information

Implementations

Clears frontend settings and event queue

Attempts to open frontend device in read-only mode

Attempts to open frontend device in read-write mode

Sets properties on frontend device

Gets properties from frontend device

Returns a frontend events if available

Returns frontend status

  • [FE_NONE]
  • [FE_HAS_SIGNAL]
  • [FE_HAS_CARRIER]
  • [FE_HAS_VITERBI]
  • [FE_HAS_SYNC]
  • [FE_HAS_LOCK]
  • [FE_TIMEDOUT]
  • [FE_REINIT]

Reads and returns a signal strength relative value (DVBv3 API)

Reads and returns a signal-to-noise ratio, relative value (DVBv3 API)

Reads and returns a bit error counter (DVBv3 API)

Reads and returns an uncorrected blocks counter (DVBv3 API)

Turns on/off generation of the continuous 22kHz tone

allowed value’s:

  • SEC_TONE_ON - turn 22kHz on
  • SEC_TONE_OFF - turn 22kHz off

Sets the DC voltage level for LNB

allowed value’s:

  • SEC_VOLTAGE_13 for 13V
  • SEC_VOLTAGE_18 for 18V
  • SEC_VOLTAGE_OFF turns LNB power supply off

Different power levels used to select internal antennas for different polarizations:

  • 13V:
    • Vertical in linear LNB
    • Right in circular LNB
  • 18V:
    • Horizontal in linear LNB
    • Left in circular LNB
  • OFF is needed with external power supply, for example to use same LNB with several receivers.

Sets DiSEqC master command

msg is a message no more 6 bytes length

Example DiSEqC commited command:

[0xE0, 0x10, 0x38, 0xF0 | value]
  • byte 1 is a framing (master command without response)
  • byte 2 is an address (any LNB)
  • byte 3 is a command (commited)
  • last 4 bits of byte 4 is:
    • xx00 - switch input
    • 00x0 - bit is set on SEC_VOLTAGE_18
    • 000x - bit is set on SEC_TONE_ON

Returns the current API version major - first byte minor - second byte

Trait Implementations

Extracts the raw file descriptor. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.