Anritsu Site Master S331D Manual de usuario Pagina 117

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 132
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 116
/*********************************************************************/
/* unsigned char ExitRemote(BYTE *ResponseBytes) */
/* Description: This function implements control byte #255, Exit */
/* Remote Mode. If successful, the unit will leave */
/* remote mode and resume sweeping. */
/* Inputs : ResponseBytes = pointer to an array of bytes at */
/* least 1 element long (1 byte is expected in */
/* response to the Exit Remote command). */
/* Returns: SUCCESS if the unit exits remote mode */
/* FAILURE if the command fails */
/* Response bytes are returned in the variable */
/* ResponseBytes. */
/*********************************************************************/
unsigned char ExitRemote(BYTE *ResponseBytes)
{
BYTE *SendExitRemoteCharPointer; // Data to send
BYTE SerialCommand;
SendExitRemoteCharPointer = &SerialCommand;
SerialCommand = 255; // 255 is the Exit Remote Serial Command
// Write 1 byte of data from SendExitRemoteCharPointer to the // COM Port
WriteToPort (SendExitRemoteCharPointer, 1);
// Expecting 1 byte back (give the unit 5 seconds to respond):
// 0xFF = success
if(!ReadFromPort(1, ResponseBytes, 1))
{
return FAILURE;
}
else
{
if ( *ResponseBytes != 0xFF )
{
return FAILURE;
}
else
{
return SUCCESS;
}
}
} /* ExitRemote */
Site Master PM 111
Vista de pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 131 132

Comentarios a estos manuales

Sin comentarios