External API Functions

ihpapi_InitializeDevice

int ihpapi_InitializeDevice (uint8_t  sa [],
 uint8_t  da [],
 size_t  FW_len,
 uint8_t  FW_pbuffer [],
 size_t  PIB_len,
 uint8_t  PIB_pbuffer [],
 insigned  options);

The function is declared in ihpapi.h and defined in InitializeDevice.c. See an example of this function in RdModWrPib2.c.

ihpapi_UpdateDevice

int ihpapi_UpdateDevice (uint8_t  sa [],
 uint8_t  da [],
 ihpapi_hostActionRequest_t  type);

The function is declared in ihpapi.h and defined in UpdateDevice.c. See examples of this function in Identity2.c, ReadMAC2.c, ReadPIB2.c and RdModWrPib2.c.

ihpapi_ResetDevice

int ihpapi_ResetDevice (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer []);

Encode a frame buffer as an Atheros vendor-specific managment message that will reset the Atheros powerline device. Return the number of bytes actually encoded on success or 0 on failure. On return, global variable errno will identify the cause of any failure with a POSIX error code. The function is declared in ihpapi.h and defined in ResetDevice.c. See an example of this function in ResetDevice2.c.

Arguments sa and da point to the 6 octet source and destination Ethernet addresses to be used. Argument buffer points to the frame buffer and argument length is the buffer length.

ihpapi_RxFrame

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

The function is declared in ihpapi.h and defined in RxFrame.c. See an example of this function in ReadMME2.c.

ihpapi_TxFrame

int ihpapi_TxFrame (size_t  length,
 uint8_t  buffer []);

The function is declared in ihpapi.h and defined in TxFrame.c. See an example of this function in RdModWrPib2.c.

ihpapi_ManageEnetPHY

int ihpapi_ManageEnetPHY (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer [],
 ihpapi_enetPHYCtl_t * inputEnetPHYInfo);

The function is declared in ihpapi.h and defined in ManageEnetPHY.c. This function is not used.

ihpapi_SetSDRAMConfig

int ihpapi_SetSDRAMConfig (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer [],
 size_t  SDRAM_Len,
 uint8_t  SDRAM_buffer []);

The function is declared in ihpapi.h and defined in SetSDRAMConfig.c. See an example of this function in SetSDRAM2.c.

ihpapi_GetVersionInfo

int ihpapi_GetVersionInfo (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer []);

The function is declared in ihpapi.h and defined in GetVersionInfo.c. See an example of this function in VersionInfo2.c.

ihpapi_GetManufacturerInfo

int ihpapi_GetManufacturerInfo (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer []);

The function is declared in ihpapi.h and defined in GetManufacturerInfo.c. See an example of this function in MfgString2.c.

ihpapi_SetKey

int ihpapi_SetKey (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer [],
 ihpapi_key_t * keyparam);

The function is declared in ihpapi.h and defined in SetKey.c. See an example of this function in SetKey2.c.

ihpapi_GetNetworkInfo

int ihpapi_GetNetworkInfo (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer []);

The function is declared in ihpapi.h and defined in GetNetworkInfo.c. See an example of this function in NetworkInfo2.c.

ihpapi_GetConnectionInfo

int ihpapi_GetConnectionInfo (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer [],
 ihpapi_connectCtl_t * inputConnectInfo);

The function is declared in ihpapi.h and defined in GetConnectionInfo.c. This function is not used.

ihpapi_GetToneMapInfo

int ihpapi_GetToneMapInfo (uint8_t  sa [],
 uint8_t  da [],
 size_t  bufferLen,
 uint8_t  buffer [],
 ihpapi_toneMapCtl_t * inputToneMapInfo);

The function is declared in ihpapi.h and defined in GetToneMap.c. This function is not used.