![]() |
RDK-B
|
| int cm_hal_InitDB | ( | void | ) |
@description Retrieves the global information for all shared DBs and makes them accessible locally.
| None |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_InitDS | ( | void | ) |
@description Init global PHY level info and DBs and get direct access to DS HW.
| None |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_InitUS | ( | void | ) |
@description Init global PHY level info and DBs and get direct access to US HW.
| None |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_getCMStatus | ( | char * | cm_status | ) |
@description Retrieve, format and output the Cable Modem DOCSIS status.
| CHAR* | cm_status - status string, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetDSChannel | ( | PCMMGMT_CM_DS_CHANNEL * | ppinfo | ) |
@description Retrieve all the relevant DS channel info from global DBs.
| PCMMGMT_CM_DS_CHANNEL | * ppinfo - all info of DS channel, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetUsStatus | ( | unsigned short | i, |
| PCMMGMT_CM_US_CHANNEL | pinfo | ||
| ) |
@description Retrieve all the relevant US channel info from global DBs.
| USHORT | i - index to the US channel |
| PCMMGMT_CM_US_CHANNEL | pinfo - info of one US channel, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetUSChannel | ( | PCMMGMT_CM_US_CHANNEL * | ppinfo | ) |
@description Retrieve particular US channel information from global DBs.
| PCMMGMT_CM_US_CHANNEL | * ppinfo - all info of US channel, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetDOCSISInfo | ( | PCMMGMT_CM_DOCSIS_INFO | pinfo | ) |
@description Retrieve current DOCSIS registration status and report it.
| PCMMGMT_CM_DOCSIS_INFO | pinfo - registration info, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetNumOfActiveTxChannels | ( | unsigned long * | cnt | ) |
@description Retrieve number of US channels actively in use in current registration.
| ULONG | * cnt - pointer to number, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetNumOfActiveRxChannels | ( | unsigned long * | cnt | ) |
@description Retrieve number of DS channels actively in use in current registration. @Param ULONG * cnt - pointer to number, to be returned
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetErrorCodewords | ( | PCMMGMT_CM_ERROR_CODEWORDS * | ppinfo | ) |
@description Scan all active DS channels and report errors in packets received.
| PCMMGMT_CM_ERROR_CODEWORDS | * ppinfo - error info retrieved |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetMddIpModeOverride | ( | char * | pValue | ) |
@description Retrieve the current MIMO status.
| CHAR | *pValue - status retrieved |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_SetMddIpModeOverride | ( | char * | pValue | ) |
@description Set the current global MIMO status.
| CHAR | *pValue - status to be set to |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| unsigned char docsis_GetUSChannelId | ( | void | ) |
@description Retrieve the US channel ID in its MAC domain.
| none |
| void docsis_SetUSChannelId | ( | int | index | ) |
@description Set the US channel ID in its MAC domain.
| INT | index = Index to set the Upstream Channel ID to |
| unsigned long docsis_GetDownFreq | ( | void | ) |
@description Retrieve the current primary channel DS channel frequency from the LKF table.
| None |
| void docsis_SetStartFreq | ( | unsigned long | value | ) |
@description Change the DS primary channel frequency in the LKF table.
| ULONG | value - frequency to get set to |
| int docsis_GetDocsisEventLogItems | ( | CMMGMT_CM_EventLogEntry_t * | entryArray, |
| int | len | ||
| ) |
@description Retrieve the DOCSIS event log entries and display it.
| CMMGMT_CM_EventLogEntry_t | *entryArray - entries to be returned |
| INT | len - length of log entries |
| int docsis_ClearDocsisEventLog | ( | void | ) |
@description Clear the DOCSIS event log.
| None |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_GetDHCPInfo | ( | PCMMGMT_CM_DHCP_INFO | pInfo | ) |
@description Retrieve all the relevant DHCP info for this CM.
| PCMMGMT_CM_DHCP_INFO | pInfo - all DHCP info for CM, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_GetIPv6DHCPInfo | ( | PCMMGMT_CM_IPV6DHCP_INFO | pInfo | ) |
@description Retrieve all the relevant IPv6 DHCP info for this CM.
| PCMMGMT_CM_IPV6DHCP_INFO | pInfo - all IPv6 DHCP info for CM, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_GetCPEList | ( | PCMMGMT_DML_CPE_LIST * | ppCPEList, |
| unsigned long * | InstanceNum, | ||
| char * | LanMode | ||
| ) |
@description Retrieve list of CPEs connected to the CM
| PCMMGMT_DML_CPE_LIST | * ppCPEList - List of all CPE, to be returned |
| ULONG* | InstnaceNum - Number of instances, to be returned |
| CHAR* | LanMode - input of "router" or "bridge" mode of the modem |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_GetMarket | ( | char * | market | ) |
@description Retrieve the market of this modem
| CHAR* | market - Name of the market for this modem, "US" or "EURO", to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_Set_HTTP_Download_Url | ( | char * | pHttpUrl, |
| char * | pfilename | ||
| ) |
@description Set Http Download Settings
| char* | pHttpUrl |
| char* | pfilename |
| RETURN_OK | if successful. |
| RETURN_ERR | if any Downloading is in process or Url string is invalided. |
| int cm_hal_Get_HTTP_Download_Url | ( | char * | pHttpUrl, |
| char * | pfilename | ||
| ) |
@description Get Http Download Url
| char* | pHttpUrl |
| char* | pfilename |
| RETURN_OK | if successful. |
| RETURN_ERR | if http url string is empty. |
| int cm_hal_Set_HTTP_Download_Interface | ( | unsigned int | interface | ) |
@description Set the HTTP Download Interface
| unsigned | int interface - interface=0 for wan0, interface=1 for erouter0 |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_Get_HTTP_Download_Interface | ( | unsigned int * | pinterface | ) |
@description Get the HTTP Download Interface
| unsigned | int* pinterface - interface=0 for wan0, interface=1 for erouter0 |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_HTTP_Download | ( | ) |
@description Start Http Download
| <None> |
| RETURN_OK | if successful. |
| RETURN_ERR | if any Downloading is in process. |
| int cm_hal_Get_HTTP_Download_Status | ( | ) |
@description Get the HTTP Download Status
| <None> |
| 0 | - Download is not started. |
| 0-100 | - Values of percent of download. |
| 200 | - Download is completed and waiting for reboot. |
| 400 | - Invalided Http server Url |
| 401 | - Cannot connect to Http server |
| 402 | - File is not found on Http server |
| 403 | - HW_Type_DL_Protection Failure |
| 404 | - HW Mask DL Protection Failure |
| 405 | - DL Rev Protection Failure |
| 406 | - DL Header Protection Failure |
| 407 | - DL CVC Failure |
| 500 | - General Download Failure |
| int cm_hal_Reboot_Ready | ( | unsigned long * | pValue | ) |
@description Get the Reboot Ready Status
| ULONG | *pValue- Values of 1 for Ready, 2 for Not Ready |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_HTTP_Download_Reboot_Now | ( | ) |
@description Http Download Reboot Now
| <None> |
| RETURN_OK | if successful. |
| RETURN_ERR | if any reboot is in process. |
| int cm_hal_FWupdateAndFactoryReset | ( | char * | pUrl, |
| char * | pImagename | ||
| ) |
@description: Firmware update and factory reset the device
| char* | pUrl - NULL for snmp |
| char* | pImagename - NULL for snmp |
| RETURN_OK | if successful. |
| RETURN_ERR | if any reboot is in process. |
| int cm_hal_ReinitMac | ( | ) |
@description Reinit CM. Performs reinit MAC only to same DS/US
| None |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetProvIpType | ( | char * | pValue | ) |
@description Retrieve the provisioned wan0 IP type
| CHAR* | pValue - ip type currently provisioned on wan0 values are "IPv4", "IPv6", or "unknown" |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetCert | ( | char * | pCert | ) |
@description Retrieve the location of the certificate
| CHAR* | pCert - certificate location, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetCertStatus | ( | unsigned long * | pVal | ) |
@description Retrieve status of the certificate
| ULONG | *pVal - certificate status, to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_Get_CableModemResetCount | ( | unsigned long * | resetcnt | ) |
@description Retrieve the count of cable modem reset
| ULONG | *resetcnt - Count to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_Get_LocalResetCount | ( | unsigned long * | resetcnt | ) |
@description Retrieve the count of local reset
| ULONG | *resetcnt - Count to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_Get_DocsisResetCount | ( | unsigned long * | resetcnt | ) |
@description Retrieve the count of docsis reset
| ULONG | *resetcnt - Count to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_Get_ErouterResetCount | ( | unsigned long * | resetcnt | ) |
@description Retrieve the count of erouter reset
| ULONG | *resetcnt - Count to be returned |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_HTTP_LED_Flash | ( | unsigned char | LedFlash | ) |
@description Enable/Disable HTTP LED Flashing
| BOOLEAN | *bLEDFlashState - Enable/Disable LED Flash |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetDsOfdmChanTable | ( | PDOCSIF31_CM_DS_OFDM_CHAN * | ppinfo, |
| int * | output_NumberOfEntries | ||
| ) |
@description Get the Downstream DSOF channel table (docsIf31CmDsOfdmChanTable)
| PDOCSIF31_CM_DS_OFDM_CHAN | *ppinfo - Ponter to get the return array |
| int | *output_NumberOfEntries - Array size need to be return with output_NumberOfEntries |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetUsOfdmaChanTable | ( | PDOCSIF31_CM_US_OFDMA_CHAN * | ppinfo, |
| int * | output_NumberOfEntries | ||
| ) |
@description Get the Upstream DSOFA channel table (docsIf31CmUsOfdmaChanTables)
| PDOCSIF31_CM_US_OFDMA_CHAN | *ppinfo - Ponter to get the return array |
| int | *output_NumberOfEntries - Array size need to be return with output_NumberOfEntries |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int docsis_GetStatusOfdmaUsTable | ( | PDOCSIF31_CMSTATUSOFDMA_US * | ppinfo, |
| int * | output_NumberOfEntries | ||
| ) |
@description Get the Upstream DSOFA channel status table (docsIf31CmStatusOfdmaUsTable)
| PDOCSIF31_CMSTATUSOFDMA_US | *ppinfo - Ponter to get the return array |
| int | *output_NumberOfEntries - Array size need to be return with output_NumberOfEntries |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |
| int cm_hal_snmpv3_kickstart_initialize | ( | snmpv3_kickstart_table_t * | pKickstart_Table | ) |
@description Configure the SNMPv3 security parameters on the CM.
| snmpv3_kickstart_table_t | * pKickstart_Table - a pointer to the SNMPv3 kickstart table |
| RETURN_OK | if successful. |
| RETURN_ERR | if any error is detected |