SC5313A Operating & Programming Manual
Rev 1.0.2
27
Function:
sc5313a_WriteUserEeprom
Definition:
int
sc5313a_WriteUserEeprom(
deviceHandle
*
deviceHandle,
unsigned
int
memAdd,
unsigned
char
byteData)
Input:
deviceHandle
*deviceHandle
(handle to the opened device)
unsigned
int
memAdd
(memory address to write to)
unsigned
char
byteData
(byte to be written to the address)
Description:
sc5313a_WriteUserEeprom
writes one byte of data to the memory address specified.
Function:
sc5313a_StoreCurrentState
Definition:
int
sc5313a_StoreCurrentState(
deviceHandle
*
deviceHandle)
Input:
deviceHandle
*deviceHandle
(handle to the opened device)
Description:
sc5313a_StoreCurrentState
stores the current state of the devices as the default
power-up state.
Function:
sc5313a_GetDeviceInfo
Definition:
int
sc5313a_GetDeviceInfo(
deviceHandle
*
deviceHandle,
deviceInfo_t
*devInfo)
Input:
deviceHandle
*deviceHandle
(handle to the opened device)
Output:
deviceInfo_t
*devInfo
(device info struct)
Description:
sc5313a_GetDeviceInfo
retrieves device information such as serial number, calibration
date, revisions, etc.
Function:
sc5313a_GetDeviceStatus
Definition:
int
sc5313a_GetDeviceStatus (
deviceHandle
*
deviceHandle,
deviceStatus_t
*deviceStatus)
Input:
deviceHandle
*deviceHandle
(handle to the opened device)
Output:
deviceStatus_t
*deviceStatus
(deviceStatus struct)
Description:
sc5313a_GetDeviceStatus
retrieves the status of the device such as phase lock status
and current device settings.
Example:
Code showing how to use function:
deviceStatus_t
*devStatus;
devStatus = (deviceStatus_t*)malloc(
sizeof
(deviceStatus_t));
int
status = SC5313A_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);