DtvKit_ATSC3.0
|
#include <atsc_mw.h>
Public Member Functions | |
CAtscMw () | |
Constructor of CAtscMw. | |
~CAtscMw () | |
Destructor for CAtscMw. | |
int32_t | GetSupportedStandards (void) |
read supported standards | |
int32_t | GetAvailNoOfFrontendInstances (void) |
returns available number of frontend instances | |
eATSCResult_t | SetRegion (eRegion_t iRegion) |
Set region:Default :US. | |
eRegion_t | GetRegion (void) |
returns current region ID | |
eATSCResult_t | SetDemod (eDemod_t iDemod) |
Set Demod type :Default :ATSC3.0. | |
eDemod_t | GetDemod (void) |
returns current Demod ID | |
eATSCResult_t | TuneToChannel (int32_t iId, int32_t iCh, int32_t iPlp, eDemod_t iDemod, eRegion_t iRegion) |
eATSCResult_t | TuneToChannel (int32_t iId, int32_t iCh, int32_t iPlp) |
eATSCResult_t | ScanChannels (int32_t iTunerId, int32_t iStartCh, int32_t iEndCh, int32_t iDemod, int32_t iPlpId) |
eATSCResult_t | ScanChannels (int32_t iId, int32_t iStartCh, int32_t iEndCh, int32_t iPlp, eDemod_t iDemod, eRegion_t iRegion) |
eATSCResult_t | StopChannelScan (int32_t iId) |
Stop channel scan. | |
eATSCResult_t | StartFrontend (int32_t iId) |
Start frontend functionality. | |
eATSCResult_t | StopFrontend (int32_t iId) |
Stop frontend functionality. | |
eATSCResult_t | GetFrontendProps (int32_t iId, sFeProp_t *pParams) |
Read frontend properties. | |
eATSCResult_t | GetFrontendStatus (int32_t iId, sFeStatus_t *pStatus) |
Read frontend status. | |
eATSCResult_t | RegisterFrontendStatusCbEvents (FeStatusCbFunc fstatus) |
Register frontend status callback. | |
eATSCResult_t | RegisterFrontendParamCbEvents (FeParamsCbFunc ptrfunc) |
Register frontend params callback. | |
sServiceListTable_t | GetSltData (void) |
Get slt data. | |
std::string | GetSystemTime (void) |
To get read system time. | |
sRrtDataTable_t | GetRrt (void) |
To get read system time. | |
void | RegisterOnsnMsgEventNotify (OnScreenNotify fParamsPtr) |
Notification event for on screen message. | |
std::string | GetMwGuideInfo (char *pUri) |
Get Guide display Info. | |
std::string | GetMwTunerInfo (sFeStatus_t *pStatus, int32_t iTunerId) |
Get Tuner Info. | |
std::string | GetMwTunersInfo (void) |
Get Tuner Info. | |
std::string | GetQueryHttpResponse (std::string sContentData) |
Get Http Response. | |
std::string | GetVersion (char *pFwVersion) |
read version | |
std::string | GetMwPrepareTunerInfo (void) |
Tuner info string to display. | |
std::string | GetDumpHistory (void) |
Display dump histroy. | |
std::string | RequestService (std::string sUri, char *pContentData) |
Request tuner service. | |
std::string | RequestDump (std::string sUri, int32_t iType) |
Request dump info. | |
std::string | RequestTuners (std::string sUri, char *pContentData) |
Request tuner service. | |
std::string | RequestUserService (std::string sUri, char *pContentData) |
std::string | RequestScan (std::string sUri, char *pContentData) |
Request Scan service. | |
std::list< sScanResult_t > | GetScanningResult (void) |
Get the scanning result. | |
void | CancelChannelScan (void) |
Stop the scanning process. | |
int32_t | Start (int32_t iPort) |
Creates a new thread to handle server operations. | |
void | ThreadServer (void *pArg, int32_t iPort) |
For handling incoming connections and managing the server socket. | |
void | Connection (int32_t iClientSock, struct sockaddr_in *pClientAddr, socklen_t stClientAddrLen) |
Handling an incoming client connection. It reads the HTTP header from the client determines the HTTP method, parses the header. | |
int32_t | ParserHttpProtocol (eHttpType_t eHttpType, int32_t iSock, sHttpHeader_t stHttpHeader) |
Parses and processes HTTP requests based on their type(GET, POST, PUT, DELETE). | |
std::string | ParserHttpProtocolFromNative (int32_t iTunerId, int32_t iType, int32_t iSock, sHttpHeader_t stHttpHeader) |
Parses and processes HTTP requests based on their type(GET, POST, PUT, DELETE) via native application. | |
void | Join (void) |
Waits for the API server thread to finish and cleans up resources. | |
std::string | GetFrontendConfiguration (void) |
Get the tuner related configuration. | |
Public Attributes | |
std::thread * | mServerThread =nullptr |
bool | mRunning |
CAtscMw::CAtscMw | ( | ) |
CAtscMw::~CAtscMw | ( | ) |
CAtscMw::CancelChannelScan | ( | void | ) |
Stop the scanning process.
NA |
NA |
CAtscMw::Connection | ( | int32_t | iClientSock, |
struct sockaddr_in * | pClientAddr, | ||
socklen_t | stClientAddrLen ) |
Handling an incoming client connection. It reads the HTTP header from the client determines the HTTP method, parses the header.
iClientSock,sockaddr_in | *pClientAddr,socklen_t iClientAddrLen |
void |
CAtscMw::GetAvailNoOfFrontendInstances | ( | void | ) |
returns available number of frontend instances
None |
Available | number of Frontend instances |
CAtscMw::GetDemod | ( | void | ) |
returns current Demod ID
None |
eDemod_t |
CAtscMw::GetDumpHistory | ( | void | ) |
Display dump histroy.
void |
std::string |
CAtscMw::GetFrontendConfiguration | ( | void | ) |
Get the tuner related configuration.
NA |
std::string |
CAtscMw::GetFrontendProps | ( | int32_t | iId, |
sFeProp_t * | pParams ) |
Read frontend properties.
iId | :Frontend Id , pParams:sFeProp_t structure pointer |
eATSCResult_t |
CAtscMw::GetFrontendStatus | ( | int32_t | iId, |
sFeStatus_t * | pStatus ) |
Read frontend status.
iId | :Frontend Id , pParams:sFeStatus_t structure pointer |
eATSCResult_t |
CAtscMw::GetMwGuideInfo | ( | char * | pUri | ) |
Get Guide display Info.
Uri | string for display |
std::string |
CAtscMw::GetMwPrepareTunerInfo | ( | void | ) |
Tuner info string to display.
void |
std::string |
CAtscMw::GetMwTunerInfo | ( | sFeStatus_t * | pStatus, |
int32_t | iTunerId ) |
CAtscMw::GetMwTunersInfo | ( | void | ) |
Get Tuner Info.
void |
std::string |
CAtscMw::GetQueryHttpResponse | ( | std::string | sContentData | ) |
Get Http Response.
std::string | sContentData |
std::string |
CAtscMw::GetRegion | ( | void | ) |
returns current region ID
None |
eRegion_t |
CAtscMw::GetRrt | ( | void | ) |
CAtscMw::GetScanningResult | ( | void | ) |
Get the scanning result.
NA |
std::list<sScanResult_t> |
CAtscMw::GetSltData | ( | void | ) |
CAtscMw::GetSupportedStandards | ( | void | ) |
read supported standards
None |
or'ed | values of supported standards |
CAtscMw::GetSystemTime | ( | void | ) |
To get read system time.
N/A |
std::string |
CAtscMw::GetVersion | ( | char * | pFwVersion | ) |
read version
char | *pFwVersion |
std::string |
CAtscMw::Join | ( | void | ) |
Waits for the API server thread to finish and cleans up resources.
NA |
void |
CAtscMw::ParserHttpProtocol | ( | eHttpType_t | eHttpType, |
int32_t | iSock, | ||
sHttpHeader_t | stHttpHeader ) |
Parses and processes HTTP requests based on their type(GET, POST, PUT, DELETE).
eHttpType_t | eType,iSock,sHttpHeader_t stHttpHeader |
int32_t |
CAtscMw::ParserHttpProtocolFromNative | ( | int32_t | iTunerId, |
int32_t | iType, | ||
int32_t | iSock, | ||
sHttpHeader_t | stHttpHeader ) |
Parses and processes HTTP requests based on their type(GET, POST, PUT, DELETE) via native application.
int32_t | iTunerId , int32_t iType ,int32_t iSock, sHttpHeader_t stHttpHeader |
std::string |
CAtscMw::RegisterFrontendParamCbEvents | ( | FeParamsCbFunc | ptrfunc | ) |
Register frontend params callback.
FeParamsCbFunc | ptrfunc |
eATSCResult_t |
CAtscMw::RegisterFrontendStatusCbEvents | ( | FeStatusCbFunc | fstatus | ) |
Register frontend status callback.
FeStatusCbFunc | fstatus |
eATSCResult_t |
CAtscMw::RegisterOnsnMsgEventNotify | ( | OnScreenNotify | fParamsPtr | ) |
Notification event for on screen message.
notify | call back |
void |
CAtscMw::RequestDump | ( | std::string | sUri, |
int32_t | iType ) |
Request dump info.
std::string | sUri,int32_t iType |
std::string |
CAtscMw::RequestScan | ( | std::string | sUri, |
char * | pContentData ) |
Request Scan service.
std::string | sUri, char *pContentData |
std::string |
CAtscMw::RequestService | ( | std::string | sUri, |
char * | pContentData ) |
Request tuner service.
std::string | sUri, char *pContentData |
std::string |
CAtscMw::RequestTuners | ( | std::string | sUri, |
char * | pContentData ) |
Request tuner service.
std::string | sUri, char *pContentData |
std::string |
CAtscMw::SetDemod | ( | eDemod_t | iDemod | ) |
Set Demod type :Default :ATSC3.0.
iDemod | Id |
eATSCResult_t |
CAtscMw::SetRegion | ( | eRegion_t | iRegion | ) |
Set region:Default :US.
iRegion | Id |
eATSCResult_t |
CAtscMw::Start | ( | int32_t | iPort | ) |
Creates a new thread to handle server operations.
int32_t | iPort |
int32_t |
CAtscMw::StartFrontend | ( | int32_t | iId | ) |
Start frontend functionality.
iId | : Frontend Id |
eATSCResult_t |
CAtscMw::StopChannelScan | ( | int32_t | iId | ) |
Stop channel scan.
iId | :Frontend Id |
eATSCResult_t |
CAtscMw::StopFrontend | ( | int32_t | iId | ) |
Stop frontend functionality.
iId | :Frontend Id |
eATSCResult_t |
CAtscMw::ThreadServer | ( | void * | pArg, |
int32_t | iPort ) |
For handling incoming connections and managing the server socket.
void | *pArg, int32_t iPort |
void |
bool CAtscMw::mRunning |
mRunning
std::thread* CAtscMw::mServerThread =nullptr |
mServerThread