8 years, 7 months ago.

Identifier "event_callback_t"is undefined "event_callback_t callback;/**<User's callback*/"

  1. ifndef MBED_TRANSACTION_H
  2. define MBED_TRANSACTION_H
  1. include "platform/platform.h"
  2. include "platform/FunctionPointer.h"

namespace mbed { typedef struct { void *tx_buffer; /< Tx buffer */ size_t tx_length; /< Length of Tx buffer*/ void *rx_buffer; /< Rx buffer */ size_t rx_length; /< Length of Rx buffer */ uint32_t event; /< Event for a transaction */ event_callback_t callback; /< User's callback */ uint8_t width; /< Buffer's word width (8, 16, 32, 64) */ } transaction_t;

template<typename Class> class Transaction { public: Transaction(Class *tpointer, const transaction_t& transaction) : _obj(tpointer), _data(transaction) { }

Transaction() : _obj(), _data() { }

Transaction() { }

Class* get_object() { return _obj; }

transaction_t* get_transaction() { return &_data; }

private: Class* _obj; transaction_t _data; };

}

  1. endif

What's the matter? Your anwser are thanks.

Be the first to answer this question.