DUNE: Uniform Navigational Environment
2016.05.0
|
Public Member Functions | |
Driver (Tasks::Task *task, SerialPort *uart) | |
~Driver (void) | |
void | sendReset (void) |
unsigned | getMOMSN (void) |
unsigned | readBufferMT (uint8_t *data, unsigned data_size) |
void | checkMailBoxAlert (void) |
void | checkMailBox (void) |
void | sendSBD (const std::vector< uint8_t > &data, bool alert_reply=false) |
const SessionResult & | getSessionResult (void) |
bool | hasSessionResult (void) |
void | clearBufferMO (void) |
void | clearBufferMT (void) |
bool | hasRingAlert (void) |
void | clearRingAlert (void) |
unsigned | getQueuedMT (void) |
|
inline |
Constructor.
[in] | task | parent task. |
[in] | uart | serial port connected to the ISU. |
|
inline |
Destructor.
|
inline |
Start an SBD session to query the number of messages waiting at the GSS.
References sendSBD().
Referenced by Transports::IridiumSBD::Task::processQueue().
|
inline |
Start an SBD session to query the number of messages waiting at the GSS.
This function should be used when hasRingAlert returns true.
References sendSBD().
Referenced by Transports::IridiumSBD::Task::processQueue().
|
inline |
Clear MO SBD message buffer.
Referenced by Transports::IridiumSBD::Task::dequeueTxRequest().
|
inline |
Clear MT SBD message buffer.
|
inline |
Clear ring alert notification.
Referenced by Transports::IridiumSBD::Task::handleSessionResult().
|
inline |
Retrieve MOMSN that will be used during the next mobile originated SBD session.
Referenced by Transports::IridiumSBD::Task::processQueue().
|
inline |
Retrieve the count of MT SBD messages waiting at the GSS.
Referenced by Transports::IridiumSBD::Task::processQueue().
|
inline |
Retrieve the result of the last SBD session.
The function should be called if hasSessionResult returns true.
Referenced by Transports::IridiumSBD::Task::handleSessionResult().
|
inline |
Check if a ring alert was received.
Referenced by Transports::IridiumSBD::Task::handleSessionResult(), and Transports::IridiumSBD::Task::processQueue().
|
inline |
Check if the result of an SBD session was received.
Referenced by Transports::IridiumSBD::Task::processQueue().
|
inline |
Read the contents of the MT SBD message buffer.
[in] | data | buffer to hold binary data. |
[in] | data_size | size of binary data buffer. |
Referenced by Transports::IridiumSBD::Task::handleSBD().
|
inline |
|
inline |
Send MO SBD message.
[in] | data | data to send. |
[in] | alert_reply | true if a ring alert was received, false otherwise. |
Referenced by checkMailBox(), checkMailBoxAlert(), and Transports::IridiumSBD::Task::processQueue().