Documentation ¶
Overview ¶
Package frontend provides interface to Linux DVB frontend device
Index ¶
- func SecParam(freq int64, polarization rune) (f uint32, t Tone, v Voltage)
- type API3
- func (f API3) BER() (ber uint32, err error)
- func (f API3) Info() (*Info, error)
- func (f API3) SNR() (snr int16, err error)
- func (f API3) SignalStrength() (ss int16, err error)
- func (f API3) Status() (status Status, err error)
- func (f API3) UncorrectedBlocks() (ublocks uint32, err error)
- func (f API3) WaitEvent(ev *Event, deadline time.Time) (bool, error)
- type Bandwidth
- type Caps
- type Device
- func (d Device) Bandwidth() (uint32, error)
- func (d Device) Clear() error
- func (d Device) Close() error
- func (d Device) CodeRateHP() (dvb.CodeRate, error)
- func (d Device) CodeRateLP() (dvb.CodeRate, error)
- func (d Device) DeliverySystem() (dvb.DeliverySystem, error)
- func (d Device) Fd() uintptr
- func (d Device) Frequency() (uint32, error)
- func (d Device) Guard() (dvb.Guard, error)
- func (d Device) Hierarchy() (dvb.Hierarchy, error)
- func (d Device) InnerFEC() (dvb.CodeRate, error)
- func (d Device) Inversion() (dvb.Inversion, error)
- func (d Device) Modulation() (dvb.Modulation, error)
- func (d Device) Pilot() (dvb.Pilot, error)
- func (d Device) Rolloff() (dvb.Rolloff, error)
- func (d Device) SetBandwidth(hz uint32) error
- func (d Device) SetCodeRateHP(r dvb.CodeRate) error
- func (d Device) SetCodeRateLP(r dvb.CodeRate) error
- func (d Device) SetDeliverySystem(ds dvb.DeliverySystem) error
- func (d Device) SetFrequency(f uint32) error
- func (d Device) SetGuard(g dvb.Guard) error
- func (d Device) SetHierarchy(h dvb.Hierarchy) error
- func (d Device) SetInnerFEC(r dvb.CodeRate) error
- func (d Device) SetInversion(i dvb.Inversion) error
- func (d Device) SetModulation(m dvb.Modulation) error
- func (d Device) SetPilot(p dvb.Pilot) error
- func (d Device) SetRolloff(r dvb.Rolloff) error
- func (d Device) SetSymbolRate(bd uint32) error
- func (d Device) SetTone(t Tone) error
- func (d Device) SetTxMode(m dvb.TxMode) error
- func (d Device) SetVoltage(v Voltage) error
- func (d Device) Stat() (*Stat, error)
- func (d Device) SymbolRate() (uint32, error)
- func (d Device) Tone() (Tone, error)
- func (d Device) Tune() error
- func (d Device) TxMode() (dvb.TxMode, error)
- func (d Device) Version() (major, minor int, err error)
- func (d Device) Voltage() (Voltage, error)
- type Error
- type Event
- type Info
- type Param
- type ParamDVBC
- type ParamDVBS
- type ParamDVBT
- type Scale
- type Stat
- type Status
- type Tone
- type Type
- type Voltage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API3 ¶
type API3 struct {
Device
}
API3 provides Linux DVB API v3 interface to frontend device
func (API3) SignalStrength ¶
func (API3) UncorrectedBlocks ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (Device) DeliverySystem ¶
func (d Device) DeliverySystem() (dvb.DeliverySystem, error)
func (Device) Modulation ¶
func (d Device) Modulation() (dvb.Modulation, error)
func (Device) SetBandwidth ¶
func (Device) SetDeliverySystem ¶
func (d Device) SetDeliverySystem(ds dvb.DeliverySystem) error
func (Device) SetFrequency ¶
func (Device) SetModulation ¶
func (d Device) SetModulation(m dvb.Modulation) error
func (Device) SetSymbolRate ¶
func (Device) SetVoltage ¶
func (Device) SymbolRate ¶
type Info ¶
type ParamDVBC ¶
type ParamDVBS ¶
type ParamDVBT ¶
type ParamDVBT struct { Freq uint32 // frequency in Hz Inversion dvb.Inversion // spectral inversion Bandwidth Bandwidth CodeRateHP dvb.CodeRate CodeRateLP dvb.CodeRate Modulation dvb.Modulation TxMode dvb.TxMode Guard dvb.Guard Hierarchy dvb.Hierarchy }
func DefaultParamDVBT ¶
DefaultParamDVBT returns pointer to ParamDVBT initialized according to regulations in specific country. TODO: DefaultParamDVBT always setup ParamDVBT for Poland. Add support for other countries.
type Stat ¶
type Stat struct { Signal []Param // Signal strength level at the analog part of the tuner or of the demod. CNR []Param // Signal to Noise ratio for the main carrier. PreErrBit []Param // Number of bit errors before FEC on the inner coding block (Viterbi, LDPC, ...). PreTotBit []Param // Number of bits received before the inner code block. PostErrBit []Param // Number of bit errors after FEC done by inner code block (Viterbi, LDPC, ...). PostTotBit []Param // Number of bits received after the inner coding. ErrBlk []Param // Number of block errors after the outer FEC (Reed-Solomon, ...). TotBlk []Param // Total number of blocks received. }
type Status ¶
type Status uint32
const ( HasSignal Status = 1 << iota // found something above the noise level HasCarrier // found a DVB signal HasViterbi // FEC is stable HasSync // found sync bytes HasLock // everything's working... Timedout // no lock within the last ~2 seconds Reinit // frontend was reinitialized, application is recommned to reset DiSEqC, tone and parameters )
Click to show internal directories.
Click to hide internal directories.