Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
dvblast
Commits
df319fd6
Commit
df319fd6
authored
May 26, 2010
by
Jean-Paul Saman
Committed by
Christophe Massiot
May 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVB-S2: print Frontend Information
parent
b190c9b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
dvb.c
dvb.c
+64
-0
No files found.
dvb.c
View file @
df319fd6
...
...
@@ -530,6 +530,68 @@ static fe_code_rate_t GetFECInner(fe_caps_t fe_caps)
exit
(
1
);
}
/*****************************************************************************
* FrontendInfo : Print frontend info
*****************************************************************************/
static
const
char
*
GetFrontendTypeName
(
fe_type_t
type
)
{
switch
(
type
)
{
case
FE_QPSK
:
return
"QPSK (DVB-S/S2)"
;
case
FE_QAM
:
return
"QAM (DVB-C)"
;
case
FE_OFDM
:
return
"OFDM (DVB-T)"
;
case
FE_ATSC
:
return
"ATSC"
;
default:
return
"unknown"
;
}
}
static
void
FrontendInfo
(
struct
dvb_frontend_info
info
)
{
msg_Dbg
(
NULL
,
"Frontend
\"
%s
\"
type
\"
%s
\"
supports:"
,
info
.
name
,
GetFrontendTypeName
(
info
.
type
)
);
msg_Dbg
(
NULL
,
"
\t
frequency min: %d, max: %d, stepsize: %d, tolerance: %d"
,
info
.
frequency_min
,
info
.
frequency_max
,
info
.
frequency_stepsize
,
info
.
frequency_tolerance
);
msg_Dbg
(
NULL
,
"
\t
symbolrate min: %d, max: %d, tolerance: %d"
,
info
.
symbol_rate_min
,
info
.
symbol_rate_max
,
info
.
symbol_rate_tolerance
);
msg_Dbg
(
NULL
,
"
\t
capabilities:"
);
#define FRONTEND_INFO(caps,val,msg) \
if ( caps & val ) \
msg_Dbg( NULL, "\t\t%s", msg );
FRONTEND_INFO
(
info
.
caps
,
FE_IS_STUPID
,
"FE_IS_STUPID"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_INVERSION_AUTO
,
"INVERSION_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_1_2
,
"FEC_1_2"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_2_3
,
"FEC_2_3"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_3_4
,
"FEC_3_4"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_4_5
,
"FEC_4_5"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_5_6
,
"FEC_5_6"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_6_7
,
"FEC_6_7"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_7_8
,
"FEC_7_8"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_8_9
,
"FEC_8_9"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_FEC_AUTO
,
"FEC_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QPSK
,
"QPSK"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QAM_16
,
"QAM_16"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QAM_32
,
"QAM_32"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QAM_64
,
"QAM_64"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QAM_128
,
"QAM_128"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QAM_256
,
"QAM_256"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_QAM_AUTO
,
"QAM_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_TRANSMISSION_MODE_AUTO
,
"TRANSMISSION_MODE_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_BANDWIDTH_AUTO
,
"BANDWIDTH_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_GUARD_INTERVAL_AUTO
,
"GUARD_INTERVAL_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_HIERARCHY_AUTO
,
"HIERARCHY_AUTO"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_8VSB
,
"8VSB"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_16VSB
,
"16VSB"
)
FRONTEND_INFO
(
info
.
caps
,
FE_HAS_EXTENDED_CAPS
,
"EXTENDED_CAPS"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_2G_MODULATION
,
"2G_MODULATION"
)
FRONTEND_INFO
(
info
.
caps
,
FE_NEEDS_BENDING
,
"NEEDS_BENDING"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_RECOVER
,
"FE_CAN_RECOVER"
)
FRONTEND_INFO
(
info
.
caps
,
FE_CAN_MUTE_TS
,
"FE_CAN_MUTE_TS"
)
#undef FRONTEND_INFO
}
/*****************************************************************************
* FrontendSet
*****************************************************************************/
...
...
@@ -613,6 +675,8 @@ static void FrontendSet( void )
exit
(
1
);
}
FrontendInfo
(
info
);
switch
(
info
.
type
)
{
case
FE_OFDM
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment