|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
85 #ifndef HOSTIF_MOCA_INTERFACE_H_
86 #define HOSTIF_MOCA_INTERFACE_H_
89 #include "hostIf_tr69ReqHandler.h"
90 #include "hostIf_utils.h"
91 #include "hostIf_updateHandler.h"
96 #define LL_LENGTH 1024
105 static std::mutex m_mutex;
108 static void closeInstance();
110 static void* getRmhContext();
111 static void* closeRmhContext();
117 int m_i32CurNumOfDevices;
119 char m_i8Status[S_LENGTH];
120 char m_i8Alias[N_LENGTH];
121 char m_i8Name[N_LENGTH];
122 unsigned int m_ui32LastChange;
123 char m_i8LowerLayers[LL_LENGTH];
125 char m_i8MacAddress[MAC_LENGTH];
126 char m_i8FirmwareVersion[N_LENGTH];
127 unsigned int m_ui32MaxBitRate;
128 unsigned int m_ui32MaxIngressBW;
129 unsigned int m_ui32MaxEgressBW;
130 unsigned int m_HighestVersion;
131 char m_i8HighestVersion[N_LENGTH];
132 char m_i8currentVersion[N_LENGTH];
133 unsigned int m_ui32NetworkCoordinator;
134 unsigned int m_ui32NodeId;
137 unsigned int m_ui32BackupNC;
138 bool m_bPrivacyEnabledSetting;
139 bool m_bPrivacyEnabled;
140 char m_i8FreqCapabilityMask[FREQ_LENGTH];
141 char m_i8FreqCurrentMaskSetting[FREQ_LENGTH];
142 char m_i8FreqCurrentMask[FREQ_LENGTH];
143 unsigned int m_ui32CurrentOperFreq;
144 unsigned int m_ui32LastOperFreq;
145 char m_i8KeyPassphrase[S_LENGTH];
146 unsigned int m_ui32TxPowerLimit;
147 unsigned int m_ui32PowerCntlPhyTarget;
148 unsigned int m_ui32BeaconPowerLimit;
149 char m_i8NetworkTabooMask[FREQ_LENGTH];
150 char m_i8NodeTabooMask[FREQ_LENGTH];
151 unsigned int m_ui32TxBcastRate;
152 unsigned int m_ui32TxBcastPowerReduction;
153 bool m_bQAM256Capable;
154 unsigned int m_ui32PacketAggregationCapability;
155 unsigned int m_ui32AssociatedDeviceNumberOfEntries;
156 unsigned int m_ui32X_RDKCENTRAL_COM_MeshTableNumberOfEntries;
158 static GHashTable *ifHash;
159 static GMutex *m_mutex;
160 static GHashTable *m_notifyHash;
165 int get_Associated_Device_NumberOfEntries(
int &numDevices );
166 int get_MoCA_Mesh_NumberOfEntries(
int &numOfEntries );
173 static void closeInstance();
175 static void getLock();
177 static void releaseLock();
179 static GHashTable* getNotifyHash();
int set_PowerCntlPhyTarget(HOSTIF_MsgData_t *)
Set the target PHY rate in Mbps for the power control algorithm.
int set_LowerLayers(HOSTIF_MsgData_t *)
Set the MoCA Interface LowerLayers list.
int get_Name(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the textual name of the interface as assigned by the CPE.
int set_PreferredNC(HOSTIF_MsgData_t *)
Set the interface is a preferred Network Coordinator (NC).
int get_NodeID(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Node ID of the MoCA interface.
int get_BeaconPowerLimit(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Beacon Transmit Power attenuation in dB relative to the maximum transmit power.
int get_NodeTabooMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of supported frequencies. This is the bit map of the spectrum...
int get_TxPowerLimit(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the transmit Power attenuation in dB relative to the maximum transmit power.
int get_Upstream(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check whether the interface points towards the Internet (true) or towards End Devices (false).
int set_Enable(HOSTIF_MsgData_t *)
Enables or disables the interface.
int set_Alias(HOSTIF_MsgData_t *)
Set the Alias-based addressing for MoCA interface.
int get_TxBcastRate(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the broadcast PHY transmit rate in Mbps for this interface.
int get_X_RDKCENTRAL_COM_SecondaryChannelFreq(HOSTIF_MsgData_t *)
Get the MoCA status for BootStatus.
int get_MACAddress(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MAC Address of the interface.
int get_TxBcastPowerReduction(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the transmit Power attenuation in dB relative to the maximum transmit power for broadcast transmi...
int get_NetworkTabooMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of MoCA taboo channels identified for the home network....
int get_FreqCapabilityMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of supported frequencies. This is the bit map of the spectrum...
int get_KeyPassphrase(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MoCA Password. The value consists of numeric characters (0-9).
int get_PowerCntlPhyTarget(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the target PHY rate in Mbps for the power control algorithm.
static int get_InterfaceNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the number of entries in the MoCA Interface table.
int get_PacketAggregationCapability(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the packet aggregation capability supported by the interface. Standard values are 0 (no support),...
int get_PrivacyEnabled(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check whether link-layer security is enabled or disabled.
int get_X_RDKCENTRAL_COM_MeshTableNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the number of entries in the X_RDKCENTRAL_COM_MeshTable table of a MoCA Interface.
int get_LowerLayers(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the path name of the MoCA interface object.
int get_HighestVersion(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the identifies the highest MoCA version that this interface supports.
int get_BackupNC(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Node ID of the backup Network Coordinator node.
int get_NetworkCoordinator(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Node ID of the current Network Coordinator (NC) for the MoCA network.
int get_AssociatedDeviceNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
The number of entries in the AssociatedDevice table.
int get_MaxBitRate(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum MoCA PHY bit rate (expressed in Mbps).
int get_FirmwareVersion(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MoCA interface's firmware version.
int get_QAM256Capable(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check whether this interface supports the 256 QAM feature.
int get_X_RDKCENTRAL_COM_TurboMode(HOSTIF_MsgData_t *)
Get the MoCA status for BootStatus.
int get_CurrentOperFreq(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the current Operational Frequency. The RF frequency in Hz to which the MoCA interface is currentl...
int get_PrivacyEnabledSetting(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the configured privacy mode. This indicates whether link-layer security is enabled (true) or disa...
int set_FreqCurrentMaskSetting(HOSTIF_MsgData_t *)
Set the configured hexadecimal encoded 64-bit mask of enabled frequencies for network admission.
int get_MaxEgressBW(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum bandwidth of this interface for flows from the MoCA network in Mbps.
int get_MaxIngressBW(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum bandwidth of this interface for flows onto the MoCA network in Mbps.
int get_Status(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the current operational state of the interface (see [Section 4.2.2/TR-181i2])....
int check_MoCABootStatus(char *)
Get the MoCA status for BootStatus.
int get_MaxNodes(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum network node capability supported by the interface. If MaxNodes is true then the inte...
int get_Enable(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the status (enabled/disabled) of the MoCA Interface.
int get_Alias(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Alias-based addressing used for MoCA interface.
int set_PrivacyEnabledSetting(HOSTIF_MsgData_t *)
Set the configured privacy mode. This indicates whether link-layer security is enabled (true) or disa...
int get_LastOperFreq(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the last Operational Frequency. The RF frequency in Hz to which the MoCA interface was tuned when...
int set_BeaconPowerLimit(HOSTIF_MsgData_t *)
Set the Beacon Transmit Power attenuation in dB relative to the maximum transmit power.
int get_X_RDKCENTRAL_COM_NodePowerState(HOSTIF_MsgData_t *)
Get the MoCA status for BootStatus.
int get_FreqCurrentMaskSetting(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the configured hexadecimal encoded 64-bit mask of enabled frequencies for network admission.
int get_PreferredNC(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check Whether this interface is a preferred Network Coordinator (NC).
int get_CurrentVersion(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MoCA version that the MoCA network is currently running.
int get_X_RDKCENTRAL_COM_PrimaryChannelFreq(HOSTIF_MsgData_t *)
Get the X_RDKCENTRAL_COM_PrimaryChannelFreq of a MoCA Interface.
int set_KeyPassphrase(HOSTIF_MsgData_t *)
Set the MoCA Password. The value consists of numeric characters (0-9). Possible patterns:
int set_TxPowerLimit(HOSTIF_MsgData_t *)
Set the transmit Power attenuation in dB relative to the maximum transmit power.
int get_LastChange(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the accumulated time in seconds since the interface entered its current operational state.
int get_FreqCurrentMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of used frequencies. This is the bit map of the spectrum that...