|
AudioScience HPI Version_4.24.1
|
A cobranet adapter has one cobranet control for each cobranet interface (usually only one). More...
Functions | |
| hpi_err_t | HPI_Cobranet_HmiWrite (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t dwHmiAddress, uint32_t dwByteCount, uint8_t *pbData) |
| Write to an HMI variable. | |
| hpi_err_t | HPI_Cobranet_HmiRead (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t dwHmiAddress, uint32_t dwMaxByteCount, uint32_t *pdwByteCount, uint8_t *pbData) |
| Read from an HMI variable. | |
| hpi_err_t | HPI_Cobranet_HmiGetStatus (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwStatus, uint32_t *pdwReadableSize, uint32_t *pdwWriteableSize) |
| Get the status of the last cobranet operation. | |
| hpi_err_t | HPI_Cobranet_GetIPaddress (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwIPaddress) |
| Get the CobraNet node's current IP address. | |
| hpi_err_t | HPI_Cobranet_SetIPaddress (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t dwIPaddress) |
| Set the CobraNet node's current IP address. | |
| hpi_err_t | HPI_Cobranet_GetStaticIPaddress (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwIPaddress) |
| Get the CobraNet node's static IP address. | |
| hpi_err_t | HPI_Cobranet_SetStaticIPaddress (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t dwIPaddress) |
| Set the CobraNet node's static IP address. | |
| hpi_err_t | HPI_Cobranet_GetMACaddress (const hpi_hsubsys_t *phSubSys, hpi_handle_t hControl, uint32_t *pdwMAC_MSBs, uint32_t *pdwMAC_LSBs) |
| Get the CobraNet node's MAC address. | |
A cobranet adapter has one cobranet control for each cobranet interface (usually only one).
The cobranet control is located on (HPI_SOURCENODE_COBRANET,0,HPI_DESTNODE_COBRANET,0) The cobranet control allows reading and writing of the cobranet HMI variables (See Cirrus cobranet documentation @ www.cobranet.info for details)
| hpi_err_t HPI_Cobranet_HmiWrite | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t | dwHmiAddress, | ||
| uint32_t | dwByteCount, | ||
| uint8_t * | pbData | ||
| ) |
Write to an HMI variable.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
| HPI_ERROR_INVALID_OPERATION | if HMI variable is not writeable |
| HPI_ERROR_INVALID_DATASIZE | if requested size is greater than the HMI variable size |
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a Cobranet control |
| dwHmiAddress | dwHmiAddress HMI address |
| dwByteCount | Number of bytes to send to the control |
| pbData | pointer to data to send |
References HPI_ERROR_MESSAGE_BUFFER_TOO_SMALL.
Referenced by HPI_Cobranet_SetIPaddress(), and HPI_Cobranet_SetStaticIPaddress().
| hpi_err_t HPI_Cobranet_HmiRead | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t | dwHmiAddress, | ||
| uint32_t | dwMaxByteCount, | ||
| uint32_t * | pdwByteCount, | ||
| uint8_t * | pbData | ||
| ) |
Read from an HMI variable.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
The amount of data returned will be the minimum of the input dwMaxByteCount and the actual size of the variable reported by the HMI
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| dwHmiAddress | HMI address |
| dwMaxByteCount | maximum number of bytes to return (<= buffer size of pbData) |
| pdwByteCount | actual number of bytes returned |
| pbData | data read from HMI variable |
References HPI_ERROR_MEMORY_ALLOC, and HPI_ERROR_RESPONSE_BUFFER_TOO_SMALL.
Referenced by HPI_Cobranet_GetIPaddress(), HPI_Cobranet_GetMACaddress(), and HPI_Cobranet_GetStaticIPaddress().
| hpi_err_t HPI_Cobranet_HmiGetStatus | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t * | pdwStatus, | ||
| uint32_t * | pdwReadableSize, | ||
| uint32_t * | pdwWriteableSize | ||
| ) |
Get the status of the last cobranet operation.
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| pdwStatus | the raw status word from the HMI |
| pdwReadableSize | the reported readable size from the last variable access |
| pdwWriteableSize | the reported writeable size from the last variable access |
| hpi_err_t HPI_Cobranet_GetIPaddress | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t * | pdwIPaddress | ||
| ) |
Get the CobraNet node's current IP address.
Allows the user to get the current IP address of the CobraNet node.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| pdwIPaddress | the current IP address |
References HPI_Cobranet_HmiRead().
| hpi_err_t HPI_Cobranet_SetIPaddress | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t | dwIPaddress | ||
| ) |
Set the CobraNet node's current IP address.
Allows the user to set the current IP address of the CobraNet node.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| dwIPaddress | the new current IP address |
References HPI_Cobranet_HmiWrite().
| hpi_err_t HPI_Cobranet_GetStaticIPaddress | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t * | pdwIPaddress | ||
| ) |
Get the CobraNet node's static IP address.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
Allows the user to get the static IP address of the CobraNet node.
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| pdwIPaddress | the static IP address |
References HPI_Cobranet_HmiRead().
| hpi_err_t HPI_Cobranet_SetStaticIPaddress | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t | dwIPaddress | ||
| ) |
Set the CobraNet node's static IP address.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
Allows the user to set the static IP address of the CobraNet node.
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| dwIPaddress | the new static IP address |
References HPI_Cobranet_HmiWrite().
| hpi_err_t HPI_Cobranet_GetMACaddress | ( | const hpi_hsubsys_t * | phSubSys, |
| hpi_handle_t | hControl, | ||
| uint32_t * | pdwMAC_MSBs, | ||
| uint32_t * | pdwMAC_LSBs | ||
| ) |
Get the CobraNet node's MAC address.
| HPI_ERROR_INVALID_CONTROL | if type is not cobranet |
Allows the user to get the MAC address of the CobraNet node.
| phSubSys | Vestigial subsys handle (unused), may be set to NULL |
| hControl | Handle of a cobranet control |
| pdwMAC_MSBs | the first 4 bytes of the MAC address. |
| pdwMAC_LSBs | the last 2 bytes of the MAC address returned in the upper 2 bytes. |
References HPI_Cobranet_HmiRead().
1.7.3