Menu

device::nic::ieee802_15_4::DRV802_15_4< RFLayer > Class Template Reference

Communication driver for communication layers provided by the 'RFLayer'. More...

#include <DRV802_15_4.h>

Public Types

typedef DRV802_15_4 type
 definition of class type including template parameters
typedef
wsn::dll::mac::MACReceiveData 
mob_t
 definition of message object provided by the communication layer

Public Member Functions

 DRV802_15_4 ()
 ~DRV802_15_4 ()
void init ()
 Initialization method for the driver.
void send (const uint8_t *buffer, uint8_t size)
 Transmitts a message using the communication layer provided as template parameter.

Data Fields

famouso::util::Delegate< const
mob_t & > 
rx_Interrupt
 The rx_Interrupt is called after a packet was successfully received.
famouso::util::Delegate tx_Interrupt
 The tx_Interrupt is called if the driver is able to send new/further messages. (not yet implemented).

Detailed Description

template<class RFLayer>
class device::nic::ieee802_15_4::DRV802_15_4< RFLayer >

Communication driver for communication layers provided by the 'RFLayer'.

This driver uses the communication layer for wireless communication provided by the 'RFLayer' to transmit and receive messages.

Parameters:
[in] RFLayer wireless communication layer the driver uses
Todo:

standard error handling

use actual size of availeble payload during compile time

use MOB as provided by the communication layer (template parameter)


Member Typedef Documentation

template<class RFLayer >
typedef wsn::dll::mac::MACReceiveData device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::mob_t

definition of message object provided by the communication layer

template<class RFLayer >
typedef DRV802_15_4 device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::type

definition of class type including template parameters


Constructor & Destructor Documentation

template<class RFLayer >
device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::DRV802_15_4 (  )  [inline]
template<class RFLayer >
device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::~DRV802_15_4 (  )  [inline]

Member Function Documentation

template<class RFLayer >
void device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::init (  )  [inline]

Initialization method for the driver.

During the initialization the callback methods are registered and the lower layers of communication are initialized.

template<class RFLayer >
void device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::send ( const uint8_t *  buffer,
uint8_t  size 
) [inline]

Transmitts a message using the communication layer provided as template parameter.

Parameters:
[in] buffer pointer to data to be send
[in] size size of data to be send
Todo:

determin the destination adress/route if message is not broadcasted

use enum parameter for sanity check of maximal payload

References TRACE_FUNCTION.


Field Documentation

The rx_Interrupt is called after a packet was successfully received.

The tx_Interrupt is called if the driver is able to send new/further messages. (not yet implemented).

Todo:
Provide functionality of using tx_interrupt

The documentation for this class was generated from the following file: