Robox Library for Cpp: BCC/31 module 1.0.0
RLibCpp BCC/31 protocol implementation
|
The base error data for all client, monitor and oscilloscope operations. More...
#include <client.h>
Public Member Functions | |
ErrorData () | |
Class contructor. | |
void | setErrorFromMessage (Message *src) |
Set error information from a source message. | |
void | clearError () |
Clear the error information. | |
void | setError (Message::ErrCodes errCode) |
Set the error information. | |
void | setError (Message::ErrCodes errCode, uint16_t errExtra) |
Set the error information. | |
Message::ErrCodes | nackErrCode () const |
Get the received NACK error code : if the value equals Message::errCodesNoError then no NACK message was received. | |
uint16_t | nackErrExtra () const |
Get the optional error extra data of the last NACK message received from the remote device. | |
Protected Member Functions | |
void | setNackErrCode (Message::ErrCodes value) |
Set the received NACK error code : if the value equals Message::errCodesNoError then no NACK message was received. | |
void | setNackErrExtra (uint16_t value) |
Set the optional error extra data of the last NACK message received from the remote device. | |
uint16_t | nackErrFlags () const |
Get the error information validity flags. | |
void | setNackErrFlags (uint16_t value) |
Set the error information validity flags. | |
The base error data for all client, monitor and oscilloscope operations.
ErrorData | ( | ) |
Class contructor.
void clearError | ( | ) |
Clear the error information.
Message::ErrCodes nackErrCode | ( | ) | const |
Get the received NACK error code : if the value equals Message::errCodesNoError then no NACK message was received.
uint16_t nackErrExtra | ( | ) | const |
Get the optional error extra data of the last NACK message received from the remote device.
|
protected |
Get the error information validity flags.
void setError | ( | Message::ErrCodes | errCode | ) |
Set the error information.
errCode | The error code |
void setError | ( | Message::ErrCodes | errCode, |
uint16_t | errExtra ) |
Set the error information.
errCode | The error code |
errExtra | The error extra data. |
void setErrorFromMessage | ( | Message * | src | ) |
Set error information from a source message.
src | The source message (can be null). |
|
protected |
Set the received NACK error code : if the value equals Message::errCodesNoError then no NACK message was received.
value | The value to set |
|
protected |
Set the optional error extra data of the last NACK message received from the remote device.
value | The value to set |
|
protected |
Set the error information validity flags.
value | The value to set |