RFID_STATUS WINAPI RFID_SetDutyCycle ( RFID_HANDLE32  readerHandle,
UINT16  dutyCycleIndex,
LPVOID  rsvd 
)

This function sets the duty cycle of the RFID Radio Module.

Parameters:
[in] readerHandle 
Handle returned by RFID_Connect.
[in] dutyCycleIndex 
Zero-based index to the supported Duty cycles as reported in pDutyCycleValueList of DUTY_CYCLE_TABLE.
[in] rsvd 
Reserved for future use.
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 Handle provided is invalid
  • RFID_READER_FUNCTION_UNSUPPORTED Unsupported on host-based readers like XR and FX
Remarks:
See also:
RFID_GetDutyCycle
Remarks:
Example:
RFID_HANDLE32 readerHandle;
RFID_STATUS rfidStatus = RFID_API_SUCCESS;
READER_CAPS readerCaps;
UINT16 dutyCycleIndex = 0;

if(RFID_API_SUCCESS == RFID_Connect(&readerHandle, NULL, 0, 0, NULL))
{
        // Get the Reader Capability
        rfidStatus = RFID_GetReaderCaps(readerHandle, &readerCaps);
        if(readerCaps.lpDutyCycleTable != NULL)
        {
                for(int nIndex = 0; nIndex < readerCaps.lpDutyCycleTable->numValues; nIndex++)
                {
                        printf("%d", readerCaps.lpDutyCycleTable->pDutyCycleValueList[nIndex]);
                }
                rfidStatus = RFID_GetDutyCycle(readerHandle, &dutyCycleIndex, NULL);
                dutyCycleIndex = readerCaps.lpDutyCycleTable->numValues - 1;
                rfidStatus = RFID_SetDutyCycle(readerHandle, dutyCycleIndex, NULL);
        }
        else
        {
                printf("DutyCycle not supported");
        }
        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