
SC5412A Operating & Programming Manual
Rev 1.1.0
26
Function:
sc5412a_GetDeviceStatus
Definition:
int
sc5412a_GetDeviceStatus(
unsigned int
deviceHandle,
deviceStatus_t
deviceStatus)
Input:
unsigned int
deviceHandle
(handle to the opened device)
Output:
deviceStatus_t
*deviceStatus
(deviceStatus struct)
Description:
sc5412a_GetDeviceStatus
retrieves the status of the device such as phase lock status
and current device settings.
Example:
Code showing how to use this function:
Function:
sc5412a_GetTemperature
Definition:
int
sc5412a_GetTemperature(
unsigned int
deviceHandle,
float
*temperature)
Input:
unsigned
int
deviceHandle
(handle to the opened device)
Output:
float
*temperature
(temperature in degrees Celsius)
Description:
sc5412a_GetTemperature
retrieves the internal temperature of the device.
Function:
sc5412a_ReadCalEeprom
Definition:
int
sc5412a_ReadCalEeprom(
unsigned int
deviceHandle,
unsigned
int
memAdd,
unsigned
char
*byteData)
Input:
unsigned
int
deviceHandle
(handle to the opened device)
unsigned
int
memAdd
(EEPROM memory address)
Output:
unsigned
char
*byteData
(the read back byte data)
Description:
sc5412a_ReadUserEeprom
reads back a byte from a specific memory address of the
calibration EEPROM.
Function:
sc5412a_ReadUserEeprom
Definition:
int
sc5412a_ReadUserEeprom(
unsigned int
deviceHandle,
unsigned
int
memAdd,
unsigned
char
*byteData)
Input:
unsigned
int
deviceHandle
(handle to the opened device)
unsigned
int
memAdd
(EEPROM memory address)
Output:
unsigned
char
*byteData
(the read back byte data)
Description:
sc5412a_ReadUserEeprom
reads back a byte from a specific memory address of the
user EEPROM.
deviceStatus_t
*devStatus;
devStatus = (deviceStatus_t*)malloc(
sizeof
(deviceStatus_t));
int
status = sc5412a_GetDeviceStatus(devHandle, devStatus);
if
(devStatus->loEnable)
printf(
"The LO Output Port is Enabled \n"
);
else
printf(
"The LO Output Port is disabled \n"
);
free(deviceStatus);