ATSC3  24.10.0
Public Member Functions | Public Attributes | List of all members
CMwService Class Reference

#include <atsc_mw_service.h>

Public Member Functions

 CMwService ()
 Constructor of CMwService. More...
 
 ~CMwService ()
 Destructor for CMwService. More...
 
int32_t GetSupportedStandards (void)
 read supported standards More...
 
int32_t GetAvailNoOfFrontendInstances (void)
 returns available number of frontend instances More...
 
eATSCResult_t SetRegion (eRegion_t iRegion)
 Set region:Default :US. More...
 
eRegion_t GetRegion (void)
 returns current region ID More...
 
eATSCResult_t SetDemod (eDemod_t iDemod)
 Set Demod type :Default :ATSC3.0. More...
 
eDemod_t GetDemod (void)
 returns current Demod ID More...
 
eATSCResult_t Frontend_TuneToChannel (int32_t iId, int32_t iCh, int32_t iPlp, eDemod_t iDemod, eRegion_t iRegion)
 
eATSCResult_t Frontend_TuneToChannel (int32_t iId, int32_t iCh, int32_t iPlp)
 
eATSCResult_t Frontend_ScanChannels (int32_t iTunerId, int32_t iStartCh, int32_t iEndCh, int32_t iDemod, int32_t iPlpId)
 
eATSCResult_t Frontend_ScanChannels (int32_t iId, int32_t iStartCh, int32_t iEndCh, int32_t iDemod, int32_t iPlp, int32_t iRegion)
 
eATSCResult_t Frontend_StopChannelScan (int32_t iId)
 Stop channel scan. More...
 
eATSCResult_t Frontend_Start (int32_t iId)
 Start frontend functionality. More...
 
eATSCResult_t Frontend_Stop (int32_t iId)
 Stop frontend functionality. More...
 
eATSCResult_t Frontend_GetProperties (int32_t iId, sFeProp_t *pProps)
 Read frontend properties. More...
 
eATSCResult_t Frontend_GetStatus (int32_t iId, sFeStatus_t *pStatus)
 Read frontend status. More...
 
eATSCResult_t Frontend_RegisterStatusEventCb (FeStatusCbFunc fStatusPtr)
 Register frontend status callback. More...
 
eATSCResult_t Frontend_RegisterParamEventCb (FeParamsCbFunc ptrfunc)
 Register frontend params callback. More...
 
sServiceListTable_t GetSltServiceData (void)
 Get slt data. More...
 
std::string GetQueryHttpResponse (std::string sContentData)
 Get the http response and query for the signaling methods. More...
 
std::string GetGuideInfo (char *sUri)
 Get the Guide information. More...
 
std::string GetTunerInfo (sFeStatus_t *pStatus, int32_t iTunerId)
 Get the Tuner Info and passed to web application. More...
 
std::string GetTunersInfo (void)
 Get the Tuner Info for two instances and passed to web application. More...
 
std::string GetVersion (char *pVersion)
 Get the version of the MW application. More...
 
std::string GetPrepareTunerInfo (int32_t iInstance, sFeStatus_t *pStatus)
 Prepare the tuner information in xml/json format. More...
 
std::string GetDumpHistory (void)
 Get the Dump data for the tuner information in the root path. More...
 
std::string RequestMWService (std::string sUri, char *pContentData)
 Request for Services. More...
 
std::string RequestMWDump (std::string sUri, int32_t iHttpType)
 Request for Dump data. More...
 
std::string MwRequestTuners (std::string sUri, char *pContentData)
 Request for Tuners. More...
 
std::string MwRequestUserService (std::string sUri, char *pContentData)
 Request for User selected Service. More...
 
std::string MwRequestScan (std::string sUri, char *pContentData)
 Request for Scan. More...
 
void StartScan (sScanScenario_t *scenario)
 Request for Start Channel scanning. More...
 
void StopScan (void)
 Request for Stop Channel scanning. More...
 
Json::Value GetScanningInfo (void)
 Request for getting scanning paremeters information. More...
 
std::list< sScanResult_tGetScanningStatus (void)
 Request for getting scanning paremeters information. More...
 
void ThreadScan ()
 Thread handler to perform the channel scanning. More...
 
std::string GetSystemTime (void)
 To get read system time. More...
 
sRrtDataTable_t GetRrt (void)
 To get the rating regional information. More...
 
void RegisterOnsnEventNotify (OnScreenNotify fParamsPtr)
 Notification event for osn message. More...
 
std::string GetFrontendConfiguration (void)
 Get the tuner related configuration. More...
 
void GetUserServiceInfo (int32_t iServiceId, int32_t iPhyCh, int32_t iMajorCh, int32_t iMinorCh)
 To get the user selected service Information. More...
 
bool ChannelBasedTune (int32_t iUserCh)
 Tune the service based on user selected channel. More...
 

Public Attributes

bool mScanning
 

Detailed Description

CMwService

Constructor & Destructor Documentation

◆ CMwService()

CMwService::CMwService ( )

Constructor of CMwService.

Parameters
N/A
Return values
N/A

◆ ~CMwService()

CMwService::~CMwService ( )

Destructor for CMwService.

Parameters
N/A
Return values
N/A

Member Function Documentation

◆ ChannelBasedTune()

CMwService::ChannelBasedTune ( int32_t  iUserCh)

Tune the service based on user selected channel.

Parameters
int32_tiUserCh
Return values
bool

◆ Frontend_GetProperties()

CMwService::Frontend_GetProperties ( int32_t  iId,
sFeProp_t pProps 
)

Read frontend properties.

Parameters
iId:Frontend Id , pParams:sFeProp_t structure pointer
Return values
eATSCResult_t

◆ Frontend_GetStatus()

CMwService::Frontend_GetStatus ( int32_t  iId,
sFeStatus_t pStatus 
)

Read frontend status.

Parameters
iId:Frontend Id , pParams:sFeStatus_t structure pointer
Return values
eATSCResult_t

◆ Frontend_RegisterParamEventCb()

CMwService::Frontend_RegisterParamEventCb ( FeParamsCbFunc  ptrfunc)

Register frontend params callback.

Parameters
FeParamsCbFuncptrfunc
Return values
eATSCResult_t

◆ Frontend_RegisterStatusEventCb()

CMwService::Frontend_RegisterStatusEventCb ( FeStatusCbFunc  fStatusPtr)

Register frontend status callback.

Parameters
FeStatusCbFuncfstatus
Return values
eATSCResult_t

◆ Frontend_Start()

CMwService::Frontend_Start ( int32_t  iId)

Start frontend functionality.

Parameters
iId: Frontend Id
Return values
eATSCResult_t

◆ Frontend_Stop()

CMwService::Frontend_Stop ( int32_t  iId)

Stop frontend functionality.

Parameters
iId:Frontend Id
Return values
eATSCResult_t

◆ Frontend_StopChannelScan()

CMwService::Frontend_StopChannelScan ( int32_t  iId)

Stop channel scan.

Parameters
iId:Frontend Id
Return values
eATSCResult_t

◆ GetAvailNoOfFrontendInstances()

CMwService::GetAvailNoOfFrontendInstances ( void  )

returns available number of frontend instances

Parameters
None
Return values
Availablenumber of Frontend instances

◆ GetDemod()

CMwService::GetDemod ( void  )

returns current Demod ID

Parameters
None
Return values
eDemod_t

◆ GetDumpHistory()

CMwService::GetDumpHistory ( void  )

Get the Dump data for the tuner information in the root path.

Parameters
NA
Return values
std::string

◆ GetFrontendConfiguration()

CMwService::GetFrontendConfiguration ( void  )

Get the tuner related configuration.

Parameters
NA
Return values
std::string

◆ GetGuideInfo()

CMwService::GetGuideInfo ( char *  sUri)

Get the Guide information.

Parameters
char*sUri
Return values
std::string

◆ GetPrepareTunerInfo()

CMwService::GetPrepareTunerInfo ( int32_t  iInstance,
sFeStatus_t pStatus 
)

Prepare the tuner information in xml/json format.

Parameters
int32_tiInstance , sFeStatus_t *pStatus
Return values
std::string

◆ GetQueryHttpResponse()

CMwService::GetQueryHttpResponse ( std::string  sContentData)

Get the http response and query for the signaling methods.

Parameters
std::stringsContentData
Return values
std::string

◆ GetRegion()

CMwService::GetRegion ( void  )

returns current region ID

Parameters
None
Return values
eRegion_t

◆ GetRrt()

CMwService::GetRrt ( void  )

To get the rating regional information.

Parameters
none
Return values
sRrtDataTable_t

◆ GetScanningInfo()

CMwService::GetScanningInfo ( void  )

Request for getting scanning paremeters information.

Parameters
void
Return values
Jsonvalue to respective interface

◆ GetScanningStatus()

CMwService::GetScanningStatus ( void  )

Request for getting scanning paremeters information.

Parameters
void
Return values
Jsonvalue to respective interface

◆ GetSltServiceData()

CMwService::GetSltServiceData ( void  )

Get slt data.

Parameters
None
Return values
sServiceListTable_t

◆ GetSupportedStandards()

CMwService::GetSupportedStandards ( void  )

read supported standards

Parameters
None
Return values
or'edvalues of supported standards

◆ GetSystemTime()

CMwService::GetSystemTime ( void  )

To get read system time.

Parameters
N/A
Return values
std::string

◆ GetTunerInfo()

CMwService::GetTunerInfo ( sFeStatus_t pStatus,
int32_t  iTunerId 
)

Get the Tuner Info and passed to web application.

Parameters
sFeStatus_t*pStatus,int32_t iTunerId
Return values
std::string

◆ GetTunersInfo()

CMwService::GetTunersInfo ( void  )

Get the Tuner Info for two instances and passed to web application.

Parameters
void
Return values
std::string

◆ GetUserServiceInfo()

CMwService::GetUserServiceInfo ( int32_t  iServiceId,
int32_t  iPhyCh,
int32_t  iMajorCh,
int32_t  iMinorCh 
)

To get the user selected service Information.

Parameters
int32_tiServiceId , int32_t iPhyCh , int32_t iMajorCh , int32_t iMinorCh
Return values
void

◆ GetVersion()

CMwService::GetVersion ( char *  pVersion)

Get the version of the MW application.

Parameters
char*pVersion
Return values
std::string

◆ MwRequestScan()

CMwService::MwRequestScan ( std::string  sUri,
char *  pContentData 
)

Request for Scan.

Parameters
std::stringsUri, char *pContentData
Return values
std::string

◆ MwRequestTuners()

CMwService::MwRequestTuners ( std::string  sUri,
char *  pContentData 
)

Request for Tuners.

Parameters
std::stringsUri, char *pContentData
Return values
std::string

◆ MwRequestUserService()

CMwService::MwRequestUserService ( std::string  sUri,
char *  pContentData 
)

Request for User selected Service.

Parameters
std::stringsUri, char *pContentData
Return values
std::string

◆ RegisterOnsnEventNotify()

CMwService::RegisterOnsnEventNotify ( OnScreenNotify  fParamsPtr)

Notification event for osn message.

Parameters
notifycalllback
Return values
void

◆ RequestMWDump()

CMwService::RequestMWDump ( std::string  sUri,
int32_t  iHttpType 
)

Request for Dump data.

Parameters
std::stringsUri, int32_t iHttpType
Return values
std::string

◆ RequestMWService()

CMwService::RequestMWService ( std::string  sUri,
char *  pContentData 
)

Request for Services.

Parameters
std::stringsUri, char *pContentData
Return values
std::string

◆ SetDemod()

CMwService::SetDemod ( eDemod_t  iDemod)

Set Demod type :Default :ATSC3.0.

Parameters
iDemodId
Return values
eATSCResult_t

◆ SetRegion()

CMwService::SetRegion ( eRegion_t  iRegion)

Set region:Default :US.

Parameters
iRegionId
Return values
eATSCResult_t

◆ StartScan()

CMwService::StartScan ( sScanScenario_t scenario)

Request for Start Channel scanning.

Parameters
std::structuresScanScenario_t *scenario
Return values
void

◆ StopScan()

CMwService::StopScan ( void  )

Request for Stop Channel scanning.

Parameters
void
Return values
void

◆ ThreadScan()

CMwService::ThreadScan ( )

Thread handler to perform the channel scanning.

Parameters
void
Return values
void

Member Data Documentation

◆ mScanning

bool CMwService::mScanning

mScanning


The documentation for this class was generated from the following files: