Internal API Functions

EncodeEthernetHeader

size_t EncodeEthernetHeader (uint8_t  buffer [],
 signed  length,
 uint8_t  ODA [],
 uint8_t  OSA []);

Encode a buffer of specified length in bytes with a standard Ethernet header. The encoded header will contain the specified destination address ODA and source address OSA and the HomePlug® AV Ethertype constant HOMEPLUG_MTYPE. Return the number of bytes actually encoded or 0 on encoding error. Set global variable errno to an appropriate POSIX error code defined in errno.h. The function is declared in ihp.h and defined in EncodeEthernetHeader.c. Constant HOMEPLUG_MTYPE is defined in ihp.h.

EncodeAtherosHeader

size_t EncodeAtherosHeader (uint8_t  buffer [],
 signed  length,
 uint16_t  MMTYPE);

Encode a buffer of specified length in bytes with an Atheros vendor-specific message header. The encoded header will contain the HomePlug® AV protocol version constant HOMEPLUG_MMV and the specified Atheros message type MMTYPE. Return the number of bytes actually encoded or 0 on encoding error. Set global variable errno to an appropriate POSIX error code defined in errno.h. The function is declared in ihp.h and defined in EncodeAtherosHeader.c. Constant HOMEPLUG_MMV is defined in ihp.h.

ihp_DecodeGetVersion

int ihp_DecodeGetVersion (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeGetVersion.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeLinkStats

int ihp_DecodeLinkStats (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeLinkStats.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeNetworkInfo

int ihp_DecodeNetworkInfo (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeNetworkInfo.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeSetKey

int ihp_DecodeSetKey (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeSetKey.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeMfgString

int ihp_DecodeMfgString (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeMfgString.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeHostAction

int ihp_DecodeHostAction (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeHostAction.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeResetDevice

int ihp_DecodeResetDevice (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeResetDevice.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeResetToFactoryDefaults

int ihp_DecodeResetToFactoryDefaults (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeResetToFactoryDefaults.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeSetSDRAMCfg

int ihp_DecodeSetSDRAMCfg (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeSetSDRAMCfg.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeGetToneMapInfo

int ihp_DecodeGetToneMapInfo (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeGetToneMapInfo.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeEthernetPHYSettings

int ihp_DecodeEthernetPHYSettings (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeEthernetPHYSettings.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeGetRxToneMap

int ihp_DecodeRxToneMap (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeRxToneMap.c.See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeSetLEDBehavior

int ihp_DecodeSetLEDBehavior (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeSetLEDBehavior.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeStartMAC

int ihp_DecodeStartMAC (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result,
 BlockInfo *  block);

The function is declared in ihp.h and defined in DecodeStartMAC.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeReadModule

int ihp_DecodeReadModule (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in DecodeReadModule.c. See an example of this function in ihpapi_sequenceReadModule.c.

ihp_DecodeWriteModule

int ihp_DecodeWriteModule (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result,
 WrtModBlock *  wrmodblk);

The function is declared in ihp.h and defined in DecodeWriteModule.c. See an example of this function in ihpapi_SequenceWriteModule.c.

ihp_DecodeWriteMemory

int ihp_DecodeWriteMemory (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result,
 WrtMemBlock *  wrmemblk);

The function is declared in ihp.h and defined in DecodeWriteMemory.c. See an example of this function in ihpapi_SequenceWriteMemory.c.

ihp_DecodeFlashNVM

int ihp_DecodeFlashNVM (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result,
 BlockInfo *  block);

The function is declared in ihp.h and defined in DecodeFlashNVM.c. See an example of this function in ihpapi_RxFrame.c.

ihp_DecodeGetNVM

int ihp_DecodeGetNVM (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result,
 struct MemoryInfo *  memory);

The function is declared in ihp.h and defined in DecodeGetNVM.c. This function is not used.

ihp_SequenceReadModule

int ihp_SequenceReadModule (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in SequenceReadModule.c.See an example of this function in ihpapi_RxFrame.c.

ihp_SequenceWriteModule

int ihp_SequenceWriteModule (const uint8_t  buffer [],
 size_t  length);

The function is declared in ihp.h and defined in SequenceWriteModule.c. See an example of this function in ihpapi_RxFrame.c.

ihp_SequenceWriteMemory

int ihp_SequenceWriteMemory (const uint8_t  buffer [],
 size_t  length,
 ihpapi_result_t *  result);

The function is declared in ihp.h and defined in SequenceWriteMemory.c. See an example of this function in ihpapi_RxFrame.c.

ihp_FindFWHeader

NVMBlockHeader *ihp_FindFWHeader (const uint8_t  FW_pbuffer [],
 size_t  length);

The function is declared in ihp.h and defined in FindFWHeader.c. See an example of this function in ihpapi_InitializeDevice.c.