Cobranet control functions.


Detailed Description

These functions implement device wide Cobranet settings.

The reader is referred to "Cobranet Programmer's Reference",Cirrus Logic, http://www.cirrus.com, for more information.


Functions

ASX32_API ASX_ERROR ASX_Cobranet_EnumerateModes (ASX_HANDLE hCobranet, const int nIndex, enum asxCOBRANET_MODE *peMode, int *pnCount)
ASX32_API ASX_ERROR ASX_Cobranet_GetMode (ASX_HANDLE hCobranet, enum asxCOBRANET_MODE *peMode)
ASX32_API ASX_ERROR ASX_Cobranet_SetMode (ASX_HANDLE hCobranet, const enum asxCOBRANET_MODE eMode)
ASX32_API ASX_ERROR ASX_Cobranet_GetIPAddress (ASX_HANDLE hCobranet, unsigned int *pdwIPAddr)
 Get the current IP address of the Cobranet device.
ASX32_API ASX_ERROR ASX_Cobranet_SetIPAddress (ASX_HANDLE hCobranet, const unsigned int dwIPAddr)
 Set the current IP address of the Cobranet device.
ASX32_API ASX_ERROR ASX_Cobranet_GetStaticIPAddress (ASX_HANDLE hCobranet, unsigned int *pdwIPAddr)
 Get the static IP address of the Cobranet device.
ASX32_API ASX_ERROR ASX_Cobranet_SetStaticIPAddress (ASX_HANDLE hCobranet, const unsigned int dwIPAddr)
 Set the static IP address of the Cobranet device.
ASX32_API ASX_ERROR ASX_Cobranet_GetMACAddress (ASX_HANDLE hCobranet, unsigned int *pdwMAC_MSBs, unsigned short *pwMAC_LSBs)
 Get the current cobranet MAC address.
ASX32_API ASX_ERROR ASX_Cobranet_GetDescription (ASX_HANDLE hCobranet, char *szString, const int nLength)
 Get the device's description from the sysDescr SNMP field.
ASX32_API ASX_ERROR ASX_Cobranet_GetName (ASX_HANDLE hCobranet, char *szString, const int nLength)
 Get the device's name from the sysName SNMP field.
ASX32_API ASX_ERROR ASX_Cobranet_SetName (ASX_HANDLE hCobranet, const char *pszLongInputString)
 Set the device's name in the sysName SNMP field.
ASX32_API ASX_ERROR ASX_Cobranet_GetLocation (ASX_HANDLE hCobranet, char *szString, const int nLength)
 Get the device's location from the sysLocation SNMP field.
ASX32_API ASX_ERROR ASX_Cobranet_SetLocation (ASX_HANDLE hCobranet, const char *pszLongInputString)
 Set the device's location in the sysLocation SNMP field.
ASX32_API ASX_ERROR ASX_Cobranet_GetFirmwareRevision (ASX_HANDLE hCobranet, char *pszRevision)
 Gets a device's firmware revision.
ASX32_API ASX_ERROR ASX_Cobranet_GetErrorInfo (ASX_HANDLE hCobranet, unsigned int *pnCode, unsigned int *pnCount, unsigned int *pnDisplay)
 Gets a device's error information.
ASX32_API ASX_ERROR ASX_Cobranet_GetLatencyAndSampleRate (ASX_HANDLE hCobranet, enum asxCOBRANET_LATENCY *peLatency, enum asxSAMPLE_RATE *peRate)
 Gets a device's latency and sample reate.
ASX32_API ASX_ERROR ASX_Cobranet_SetLatencyAndSampleRate (ASX_HANDLE hCobranet, const enum asxCOBRANET_LATENCY eLatency, const enum asxSAMPLE_RATE eRate)
 Gets a device's latency and sample reate.
ASX32_API ASX_ERROR ASX_Cobranet_GetPersistence (ASX_HANDLE hCobranet, unsigned int *pnSetting)
 Gets a device's flash persistence setting.
ASX32_API ASX_ERROR ASX_Cobranet_SetPersistence (ASX_HANDLE hCobranet, const unsigned int nSetting)
 Sets a device's flash persistence state.
ASX32_API ASX_ERROR ASX_Cobranet_GetConductorPriority (ASX_HANDLE hCobranet, unsigned int *pnPriority)
 Gets a device's conductor priority.
ASX32_API ASX_ERROR ASX_Cobranet_SetConductorPriority (ASX_HANDLE hCobranet, const unsigned int nPriority)
 Sets a device's conductor priority.
ASX32_API ASX_ERROR ASX_Cobranet_GetConductorStatus (ASX_HANDLE hCobranet, unsigned int *pnState)
 Gets a device's conductor status.


Function Documentation

ASX32_API ASX_ERROR ASX_Cobranet_EnumerateModes ASX_HANDLE  hCobranet,
const int  nIndex,
enum asxCOBRANET_MODE peMode,
int *  pnCount
 

Deprecated:
This function has been removed (it is stubbed out).

ASX32_API ASX_ERROR ASX_Cobranet_GetConductorPriority ASX_HANDLE  hCobranet,
unsigned int *  pnPriority
 

Gets a device's conductor priority.

Parameters:
hCobranet A handle to an ASX cobranet control.
pnPriority Returned Priority. 0 indcates that this device will never be the network conductor. 1 is the lowest priority and 0xFF is the highest priority.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetConductorStatus ASX_HANDLE  hCobranet,
unsigned int *  pnState
 

Gets a device's conductor status.

Parameters:
hCobranet A handle to an ASX cobranet control.
pnState Returned state. 1 indicates that this device is the conductor for the Cobranet network. 0 indicates that it is not the conductor.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetDescription ASX_HANDLE  hCobranet,
char *  szString,
const int  nLength
 

Get the device's description from the sysDescr SNMP field.

This is are read-only operation.

Parameters:
hCobranet A handle to an ASX cobranet control.
szString Pointer to a string of length ASX_LONG_STRING.
nLength Description string length.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetErrorInfo ASX_HANDLE  hCobranet,
unsigned int *  pnCode,
unsigned int *  pnCount,
unsigned int *  pnDisplay
 

Gets a device's error information.

Returns SNMP variables errorCode, errorCount and errorDisplay.

Parameters:
hCobranet A handle to an ASX cobranet control.
pnCode Pointer used to return error code. See error code listing the Cobranet Programmer Manual from Cirrus Logic.
pnCount Pointer used to return error count which contains the number of errors that have occurred.
pnDisplay Pointer used to return error display number.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetFirmwareRevision ASX_HANDLE  hCobranet,
char *  pszRevision
 

Gets a device's firmware revision.

This is a combination of SNMP fields firmwareProtocolVersion, firmwareMajorVersion and firmwareMinorVersion.

Parameters:
hCobranet A handle to an ASX cobranet control.
pszRevision A pointer to a char array of length ASX_SHORT_STRING to return the revision string.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetIPAddress ASX_HANDLE  hCobranet,
unsigned int *  pdwIPAddr
 

Get the current IP address of the Cobranet device.

Parameters:
hCobranet A handle to an ASX cobranet control.
pdwIPAddr Gets the IP address.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetLatencyAndSampleRate ASX_HANDLE  hCobranet,
enum asxCOBRANET_LATENCY peLatency,
enum asxSAMPLE_RATE peRate
 

Gets a device's latency and sample reate.

Returns information from SNMP variable modeRateControl.

Parameters:
hCobranet A handle to an ASX cobranet control.
peLatency Pointer used to return latency.
peRate Pointer used to return sample rate.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetLocation ASX_HANDLE  hCobranet,
char *  szString,
const int  nLength
 

Get the device's location from the sysLocation SNMP field.

Parameters:
hCobranet A handle to an ASX cobranet control.
szString Pointer to a string of length ASX_LONG_STRING.
nLength Name string length.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetMACAddress ASX_HANDLE  hCobranet,
unsigned int *  pdwMAC_MSBs,
unsigned short *  pwMAC_LSBs
 

Get the current cobranet MAC address.

Parameters:
hCobranet A handle to an ASX cobranet control.
pdwMAC_MSBs Gets the four most significant bytes of the MAC address.
pwMAC_LSBs Gets the two least significant bytes of the MAC address.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetMode ASX_HANDLE  hCobranet,
enum asxCOBRANET_MODE peMode
 

Deprecated:
This function has been removed (it is stubbed out).

ASX32_API ASX_ERROR ASX_Cobranet_GetName ASX_HANDLE  hCobranet,
char *  szString,
const int  nLength
 

Get the device's name from the sysName SNMP field.

Parameters:
hCobranet A handle to an ASX cobranet control.
szString Pointer to a string of length ASX_LONG_STRING.
nLength Name string length.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetPersistence ASX_HANDLE  hCobranet,
unsigned int *  pnSetting
 

Gets a device's flash persistence setting.

Returns information from SNMP variable flashPersistEnable. This should be set to maintain static IP assignments and Cobranet bunlde and routing assignments through a powerdown. Conversely, clearing the persistence bit and then powering cycling the ASI2416 will set it back to factory defaults.

Parameters:
hCobranet A handle to an ASX cobranet control.
pnSetting 0 indicates no persistence set. Non-zero indicates persistence enabled.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_GetStaticIPAddress ASX_HANDLE  hCobranet,
unsigned int *  pdwIPAddr
 

Get the static IP address of the Cobranet device.

Parameters:
hCobranet A handle to an ASX cobranet control.
pdwIPAddr Gets the static IP address. A value of 0 (0.0.0.0) indicates that no static IP address has been assigned to this device.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetConductorPriority ASX_HANDLE  hCobranet,
const unsigned int  nPriority
 

Sets a device's conductor priority.

Parameters:
hCobranet A handle to an ASX cobranet control.
nPriority Priority to set. 0 indcates that this device will never be the network conductor. 1 is the lowest priority and 0xFF is the highest priority.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetIPAddress ASX_HANDLE  hCobranet,
const unsigned int  dwIPAddr
 

Set the current IP address of the Cobranet device.

Parameters:
hCobranet A handle to an ASX cobranet control.
dwIPAddr The IP address to set.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetLatencyAndSampleRate ASX_HANDLE  hCobranet,
const enum asxCOBRANET_LATENCY  eLatency,
const enum asxSAMPLE_RATE  eRate
 

Gets a device's latency and sample reate.

Returns information from SNMP variable modeRateControl.

Parameters:
hCobranet A handle to an ASX cobranet control.
eLatency Latency to set.
eRate Sample rate to set. Note that the ASI2416 only supports a sample rate of 48 kHz.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetLocation ASX_HANDLE  hCobranet,
const char *  pszLongInputString
 

Set the device's location in the sysLocation SNMP field.

Maximum name length is 60 characters.

Parameters:
hCobranet A handle to an ASX cobranet control.
pszLongInputString Pointer to a 0 terminated string of length ASX_LONG_STRING. Only the first 60 characters of the string should be used.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetMode ASX_HANDLE  hCobranet,
const enum asxCOBRANET_MODE  eMode
 

Deprecated:
This function has been removed (it is stubbed out).

ASX32_API ASX_ERROR ASX_Cobranet_SetName ASX_HANDLE  hCobranet,
const char *  pszLongInputString
 

Set the device's name in the sysName SNMP field.

Maximum name length is 60 characters.

Parameters:
hCobranet A handle to an ASX cobranet control.
pszLongInputString Pointer to a 0 terminated string of length ASX_LONG_STRING. Only the first 60 characters of the string should be used.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetPersistence ASX_HANDLE  hCobranet,
const unsigned int  nSetting
 

Sets a device's flash persistence state.

Writes setting to SNMP variable flashPersistEnable. This should be set to maintain static IP assignments and Cobranet bunlde and routing assignments through a powerdown. Conversely, clearing the persistence bit and then powering cycling the ASI2416 will set it back to factory defaults.

Parameters:
hCobranet A handle to an ASX cobranet control.
nSetting 0 indicates no persistence set. Non-zero indicates persistence enabled.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.

ASX32_API ASX_ERROR ASX_Cobranet_SetStaticIPAddress ASX_HANDLE  hCobranet,
const unsigned int  dwIPAddr
 

Set the static IP address of the Cobranet device.

Parameters:
hCobranet A handle to an ASX cobranet control.
dwIPAddr The static IP address to set. A value of 0 resets the static IP address. The assigned static IP address will not take effect until the device is restarted.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.


Generated on Tue Nov 18 13:03:41 2008 for ASX by  doxygen 1.4.6-NO