#include <I2CTransactionMessage.h>
Public Member Functions | |
| I2C_Transaction_Message () | |
| I2C_Transaction_Message (uint16_t chipNumber, vector< I2C_Message > messageQueue, uint64_t transactionDelayUsec=0) | |
| virtual | ~I2C_Transaction_Message () |
| I2C_Transaction_Message & | operator= (const I2C_Transaction_Message &other) |
| I2CError | getError () |
| void | setError (I2CError error) |
| vector< I2C_Message > & | getAllMessages () |
| void | registerEventHandle (void *callback, void *context) |
| void | publishTransaction () |
Public Member Functions inherited from apra::Message | |
| Message () | |
| virtual | ~Message () |
| void | setType (MESSAGE_TYPE t) |
| MESSAGE_TYPE | getType () |
| uint64_t | getHandle () |
Public Attributes | |
| uint16_t | m_chipNumber |
| bool | m_stopOnAnyTransactionFailure |
| uint64_t | m_transactionDelayUsec |
| vector< I2C_Message > | m_messages |
Protected Attributes | |
| void * | m_callbackContext |
| I2CEventCallback * | m_callback |
| I2CError | m_error |
Protected Attributes inherited from apra::Message | |
| MESSAGE_TYPE | m_type |
| uint64_t | m_handle |
Definition at line 22 of file I2CTransactionMessage.h.
| apra::I2C_Transaction_Message::I2C_Transaction_Message | ( | ) |
Definition at line 21 of file I2CTransactionMessage.cpp.
References REQUEST_RESPONSE, and apra::Message::setType().
| apra::I2C_Transaction_Message::I2C_Transaction_Message | ( | uint16_t | chipNumber, |
| vector< I2C_Message > | messageQueue, | ||
| uint64_t | transactionDelayUsec = 0 |
||
| ) |
Definition at line 28 of file I2CTransactionMessage.cpp.
References REQUEST_RESPONSE, and apra::Message::setType().
|
virtual |
Definition at line 37 of file I2CTransactionMessage.cpp.
| vector< I2C_Message > & apra::I2C_Transaction_Message::getAllMessages | ( | ) |
Definition at line 66 of file I2CTransactionMessage.cpp.
References m_messages.
| I2CError apra::I2C_Transaction_Message::getError | ( | ) |
Definition at line 56 of file I2CTransactionMessage.cpp.
References m_error.
| I2C_Transaction_Message & apra::I2C_Transaction_Message::operator= | ( | const I2C_Transaction_Message & | other | ) |
Definition at line 41 of file I2CTransactionMessage.cpp.
References m_callback, m_callbackContext, m_chipNumber, m_error, apra::Message::m_handle, m_messages, m_stopOnAnyTransactionFailure, m_transactionDelayUsec, and apra::Message::m_type.
| void apra::I2C_Transaction_Message::publishTransaction | ( | ) |
Definition at line 77 of file I2CTransactionMessage.cpp.
References m_callback, and m_callbackContext.
Referenced by apra::I2C_Interface::processEvents(), and apra::I2C_Interface::processSingleEvent().
| void apra::I2C_Transaction_Message::registerEventHandle | ( | void * | callback, |
| void * | context | ||
| ) |
Definition at line 71 of file I2CTransactionMessage.cpp.
References m_callback, and m_callbackContext.
| void apra::I2C_Transaction_Message::setError | ( | I2CError | error | ) |
Definition at line 61 of file I2CTransactionMessage.cpp.
References m_error.
Referenced by apra::I2C_Interface::processI2CTransaction().
|
protected |
Definition at line 42 of file I2CTransactionMessage.h.
Referenced by operator=(), publishTransaction(), and registerEventHandle().
|
protected |
Definition at line 41 of file I2CTransactionMessage.h.
Referenced by operator=(), publishTransaction(), and registerEventHandle().
| uint16_t apra::I2C_Transaction_Message::m_chipNumber |
Definition at line 36 of file I2CTransactionMessage.h.
Referenced by operator=(), and apra::I2C_Interface::processI2CTransaction().
|
protected |
Definition at line 43 of file I2CTransactionMessage.h.
Referenced by getError(), operator=(), and setError().
| vector<I2C_Message> apra::I2C_Transaction_Message::m_messages |
Definition at line 39 of file I2CTransactionMessage.h.
Referenced by getAllMessages(), operator=(), and apra::I2C_Interface::processI2CTransaction().
| bool apra::I2C_Transaction_Message::m_stopOnAnyTransactionFailure |
Definition at line 37 of file I2CTransactionMessage.h.
Referenced by operator=(), and apra::I2C_Interface::processI2CTransaction().
| uint64_t apra::I2C_Transaction_Message::m_transactionDelayUsec |
Definition at line 38 of file I2CTransactionMessage.h.
Referenced by operator=(), and apra::I2C_Interface::processMessage().