Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
3acca767
Commit
3acca767
authored
16 years ago
by
tho
Browse files
Options
Downloads
Patches
Plain Diff
DVBFrontendHandle: added some methods to the protocol
parent
d890efe9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Socket/Protocols/DVB/DVBFrontendHandle.cc
+18
-0
18 additions, 0 deletions
Socket/Protocols/DVB/DVBFrontendHandle.cc
Socket/Protocols/DVB/DVBFrontendHandle.hh
+14
-2
14 additions, 2 deletions
Socket/Protocols/DVB/DVBFrontendHandle.hh
with
32 additions
and
2 deletions
Socket/Protocols/DVB/DVBFrontendHandle.cc
+
18
−
0
View file @
3acca767
...
...
@@ -73,6 +73,24 @@ prefix_ int16_t senf::DVBFrontendSocketProtocol::signalStrength()
return
strength
;
}
prefix_
int16_t
senf
::
DVBFrontendSocketProtocol
::
signalNoiseRatio
()
const
{
int16_t
snr
;
if
(
::
ioctl
(
fd
(),
FE_READ_SNR
,
&
snr
)
<
0
)
SENF_THROW_SYSTEM_EXCEPTION
(
"Could not get signal-to-noise ratio of DVB adapter."
);
return
snr
;
}
prefix_
uint32_t
senf
::
DVBFrontendSocketProtocol
::
bitErrorRate
()
const
{
uint32_t
ber
;
if
(
::
ioctl
(
fd
(),
FE_READ_BER
,
&
ber
)
<
0
)
SENF_THROW_SYSTEM_EXCEPTION
(
"Could not get bit error rate of DVB adapter."
);
return
ber
;
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
//#include "DVBFrontendHandle.mpp"
...
...
This diff is collapsed.
Click to expand it.
Socket/Protocols/DVB/DVBFrontendHandle.hh
+
14
−
2
View file @
3acca767
...
...
@@ -84,9 +84,21 @@ namespace senf {
///@}
int16_t
signalStrength
()
const
;
///< Return current signal strength
int16_t
signalStrength
()
const
;
///< Return
s
current signal strength
/**< Returns the signal strength value for the signal
currently received by the front-end. */
currently received by the front-end. For this method,
read-only access to the device is sufficient.*/
int16_t
signalNoiseRatio
()
const
;
///< Returns current signal-to-noise ratio
/**< Returns the signal-to-noise ratio for the signal
currently received by the front-end. For this method,
read-only access to the device is sufficient. */
uint32_t
bitErrorRate
()
const
;
///< Returns the current bit error rate for the signal
/**< Returns the bit error rate for the signal currently
received/demodulated by the front-end. For this method,
read-only access to the device is sufficient. */
};
typedef
ProtocolClientSocketHandle
<
DVBFrontendSocketProtocol
>
DVBFrontendHandle
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment