SC5506A Operating & Programming Manual
Rev 2.1.1
28
Function:
sc5506a_SetAlcDac
Definition:
int
sc5506a_SetAlcDac(
deviceHandle
*
devHandle,
unsigned char
channel,
unsigned int
dacValue)
Input:
deviceHandle
*devHandle
(handle to the opened device)
unsigned char
channel
(channel name of target ALC DAC)
unsigned int
dacValue
(14 bit value for adjusting the ALC DAC)
Description:
sc5506a_SetAlcDac
writes a value to the ALC DAC to control the RF output level for a
channel.
Function:
sc5506a_GetDeviceStatus
Definition:
int
sc5506a_GetDeviceStatus(
deviceHandle
*
devHandle,
deviceStatus_t
*deviceStatus)
Input:
deviceHandle
*devHandle
(handle to the opened device)
Output:
deviceStatus_t
*deviceStatus
(deviceStatus struct)
Description:
sc5506a_GetDeviceStatus
retrieves the status of the device such as phase lock status and
current device settings.
Example:
Code showing how to use function:
Function:
sc5506a_GetTemperature
Definition:
int
sc5506a_GetTemperature(
deviceHandle
*
devHandle,
float
*temperature)
Input:
deviceHandle
*devHandle
(handle to the opened device)
Output:
float
*temperature
(temperature in degrees Celsius)
Description:
sc5506a_GetTemperature
retrieves the internal temperature of the device.
Function:
sc5506a_GetAlcDac
Definition:
int
sc5506a_GetAlcDac(
deviceHandle
*
devHandle,
unsigned char
channel,
unsigned
int
*dacValue)
Input:
deviceHandle
*devHandle
(handle to the opened device)
unsigned char
channel
(channel name of target ALC DAC)
Output:
unsigned
char
*dacValue
(the read back byte data)
Description:
sc5506a_GetAlcDac
reads back the current ALC DAC value.
deviceStatus_t
*devStatus;
devStatus = (deviceStatus_t*)malloc(
sizeof
(deviceStatus_t));
int
status = sc5506a_GetDeviceStatus(devHandle, devStatus);
if
(devStatus->vcxoPllLock)
printf(
"The 100 MHz is phase-locked \n"
);
else
printf(
"The 100 MHz is not phase-locked \n"
);
free(deviceStatus);