Wiselib
Public Types | Public Member Functions
wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio > Class Template Reference

#include <iphone_radio.h>

Inherits wiselib::RadioBase< OsModel_P, uint16_t, __darwin_size_t, uint8_t >.

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
enum  SpecialNodeIds { BROADCAST_ADDRESS = 0xffff, NULL_NODE_ID = 0 }
enum  Restrictions { MAX_MESSAGE_LENGTH = 512 }
typedef OsModel_P OsModel
typedef iPhoneRadioModel< OsModelself_type
typedef self_typeself_pointer_t
typedef IPhoneLinkMessage
< OsModel, typename
OsModel::Radio
Message
typedef uint16_t node_id_t
typedef uint8_t block_data_t
typedef __darwin_size_t size_t
typedef uint8_t message_id_t
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > 
radio_delegate_t
enum  ReturnValues
typedef vector_static< OsModel,
radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

 iPhoneRadioModel (iPhoneSystem &system)
virtual ~iPhoneRadioModel ()
void set_testbed (NSString *url, UInt16 port)
int enable_radio ()
int disable_radio ()
node_id_t id ()
int send (node_id_t to, size_t len, block_data_t *data)
void receive_message (node_id_t from, size_t len, block_data_t *buf)
int reg_recv_callback (T *obj_pnt)
int unreg_recv_callback (int idx)
void notify_receivers (node_id_t from, size_t len, block_data_t *data)

template<typename OsModel_P, bool IPhoneLinkRadio = false>
class wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >


Member Typedef Documentation

template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef uint8_t wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::block_data_t
typedef vector_static<OsModel, radio_delegate_t, RADIO_BASE_MAX_RECEIVERS > wiselib::RadioBase< OsModel_P, uint16_t , __darwin_size_t , uint8_t , RADIO_BASE_MAX_RECEIVERS >::CallbackVector [inherited]
typedef CallbackVector::iterator wiselib::RadioBase< OsModel_P, uint16_t , __darwin_size_t , uint8_t , RADIO_BASE_MAX_RECEIVERS >::CallbackVectorIterator [inherited]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef IPhoneLinkMessage<OsModel, typename OsModel::Radio> wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::Message
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef uint8_t wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::message_id_t
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef uint16_t wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::node_id_t
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef OsModel_P wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::OsModel
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::radio_delegate_t
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef self_type* wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::self_pointer_t
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef iPhoneRadioModel<OsModel> wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::self_type
template<typename OsModel_P , bool IPhoneLinkRadio = false>
typedef __darwin_size_t wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::size_t

Member Enumeration Documentation

template<typename OsModel_P , bool IPhoneLinkRadio = false>
enum wiselib::iPhoneRadioModel::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 
template<typename OsModel_P , bool IPhoneLinkRadio = false>
enum wiselib::iPhoneRadioModel::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 

Maximal number of bytes in payload.

template<typename OsModel_P , bool IPhoneLinkRadio = false>
enum wiselib::iPhoneRadioModel::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication range.

NULL_NODE_ID 

Unknown/No node id.


Constructor & Destructor Documentation

template<typename OsModel_P , bool IPhoneLinkRadio = false>
wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::iPhoneRadioModel ( iPhoneSystem system) [inline]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
virtual wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::~iPhoneRadioModel ( ) [inline, virtual]

Member Function Documentation

template<typename OsModel_P , bool IPhoneLinkRadio = false>
int wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::disable_radio ( void  ) [inline]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
int wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::enable_radio ( void  ) [inline]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
node_id_t wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::id ( void  ) [inline]
void wiselib::RadioBase< OsModel_P, uint16_t , __darwin_size_t , uint8_t , RADIO_BASE_MAX_RECEIVERS >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline, inherited]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
void wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::receive_message ( node_id_t  from,
size_t  len,
block_data_t buf 
) [inline]
int wiselib::RadioBase< OsModel_P, uint16_t , __darwin_size_t , uint8_t , RADIO_BASE_MAX_RECEIVERS >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
int wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::send ( node_id_t  to,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P , bool IPhoneLinkRadio = false>
void wiselib::iPhoneRadioModel< OsModel_P, IPhoneLinkRadio >::set_testbed ( NSString *  url,
UInt16  port 
) [inline]
int wiselib::RadioBase< OsModel_P, uint16_t , __darwin_size_t , uint8_t , RADIO_BASE_MAX_RECEIVERS >::unreg_recv_callback ( int  idx) [inline, inherited]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines