Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PModem::CanInitialise (  )  const

The modem is in a state that allows the initialise to start.

Returns:
TRUE if the Initialise() function may proceeed.

Definition at line 227 of file modem.cxx.

References AwaitingResponse, Deinitialising, Dialling, HangingUp, Initialising, SendingUserCommand, and Unopened.

Referenced by Initialise().

{
  switch (status) {
    case Unopened :
    case Initialising :
    case Dialling :
    case AwaitingResponse :
    case HangingUp :
    case Deinitialising :
    case SendingUserCommand :
      return FALSE;

    default :
      return TRUE;
  }
}


Generated by  Doxygen 1.6.0   Back to index