Struct libdvb::fe::FeDevice [−][src]
A reference to the frontend device and device information
Implementations
impl FeDevice
[src]
pub fn clear(&self) -> Result<()>
[src]
Clears frontend settings and event queue
pub fn open_ro(adapter: u32, device: u32) -> Result<FeDevice>
[src]
Attempts to open frontend device in read-only mode
pub fn open_rw(adapter: u32, device: u32) -> Result<FeDevice>
[src]
Attempts to open frontend device in read-write mode
pub fn set_properties(&self, cmdseq: &[DtvProperty]) -> Result<()>
[src]
Sets properties on frontend device
pub fn get_properties(&self, cmdseq: &mut [DtvProperty]) -> Result<()>
[src]
Gets properties from frontend device
pub fn get_event(&self, event: &mut FeEvent) -> Result<()>
[src]
Returns a frontend events if available
pub fn read_status(&self) -> Result<u32>
[src]
Returns frontend status
pub fn read_signal_strength(&self) -> Result<u16>
[src]
Reads and returns a signal strength relative value (DVBv3 API)
pub fn read_snr(&self) -> Result<u16>
[src]
Reads and returns a signal-to-noise ratio, relative value (DVBv3 API)
pub fn read_ber(&self) -> Result<u32>
[src]
Reads and returns a bit error counter (DVBv3 API)
pub fn read_unc(&self) -> Result<u32>
[src]
Reads and returns an uncorrected blocks counter (DVBv3 API)
pub fn set_tone(&self, value: u32) -> Result<()>
[src]
Turns on/off generation of the continuous 22kHz tone
allowed value
’s:
- SEC_TONE_ON - turn 22kHz on
- SEC_TONE_OFF - turn 22kHz off
pub fn set_voltage(&self, value: u32) -> Result<()>
[src]
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.
pub fn diseqc_master_cmd(&self, msg: &[u8]) -> Result<()>
[src]
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
pub fn get_api_version(&self) -> u16
[src]
Returns the current API version major - first byte minor - second byte
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FeDevice
impl Send for FeDevice
impl Sync for FeDevice
impl Unpin for FeDevice
impl UnwindSafe for FeDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,