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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.