RFID_STATUS WINAPI RFID_GetAntennaConfig ( RFID_HANDLE32  readerHandle,
UINT16  antennaID,
UINT16 *  pReceiveSensitivityIndex,
UINT16 *  pTransmitPowerIndex,
UINT16 *  pTransmitFrequencyIndex 
)

This function gets the antenna configuration from the reader.

Parameters:
[in] readerHandle 
Handle to the RFID device.
[in] antennaID 
Antenna ID; cannot be zero.
[out] pReceiveSensitivityIndex 
Pointer to ReceiveSensitivityIndex. The value is the zero-based index into the ReceiveSensitivityTable.
[out] pTransmitPowerIndex 
Pointer to TransmitPowerIndex. The value is the zero-based index into the TransmitPowerTable.
[out] pTransmitFrequencyIndex 
Pointer to Frequency-hop table or Channel Index. In frequency-hopping regulatory regions, this is the Frequency hop table ID. In case of Fixed Frequency, this is the one-based channel index in the FixedFrequencyTable.
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Invalid handle is provided
  • RFID_API_PARAM_ERROR Invalid parameter given
  • RFID_API_PARAM_OUT_OF_RANGE Parameter is out of Range
  • RFID_CONFIG_GET_FAILED Failed to get the configuration
Remarks:
None
See also:
RFID_SetAntennaConfig, RFID_GetPhysicalAntennaProperties
Remarks:
Example:
RFID_HANDLE32 readerHandle;
RFID_STATUS rfidStatus = RFID_API_SUCCESS;
READER_CAPS readerCaps;
UINT16 antennaId = 4;
UINT16 receiveSensitivityIndex, transmitPowerIndex, transmitFrequencyIndex;

if(RFID_API_SUCCESS == RFID_Connect(&readerHandle, TEXT("157.235.207.190"), 0, 0, 0))
{
// Get the Reader Capability
rfidStatus = RFID_GetReaderCaps(readerHandle, &readerCaps);                     

// Get Antenna Configuration for Antenna Id
rfidStatus = RFID_GetAntennaConfig(readerHandle, antennaId,
&receiveSensitivityIndex, &transmitPowerIndex, &transmitFrequencyIndex);
printf("\n Config of Antenna: %d: rxIndex-%d, txIndex-%d, txFqIndex-%d",
antennaId, receiveSensitivityIndex, transmitPowerIndex, transmitFrequencyIndex);

// Set highest transmit power
transmitPowerIndex = readerCaps.transmitPowerLevelTable.numValues -1;

// Set Antenna Config for Antenna Id - 1
rfidStatus = RFID_SetAntennaConfig(readerHandle, 1,
receiveSensitivityIndex, transmitPowerIndex, transmitFrequencyIndex);

rfidStatus = RFID_Disconnect(readerHandle);
}


Generated on Fri Mar 4 02:25:29 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6