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
| 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
| typedef DRV802_15_4 device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::type |
definition of class type including template parameters
Constructor & Destructor Documentation
| device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::DRV802_15_4 | ( | ) | [inline] |
| device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::~DRV802_15_4 | ( | ) | [inline] |
Member Function Documentation
| 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.
| 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
| famouso::util::Delegate<const mob_t&> device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::rx_Interrupt |
The rx_Interrupt is called after a packet was successfully received.
| famouso::util::Delegate device::nic::ieee802_15_4::DRV802_15_4< RFLayer >::tx_Interrupt |
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:
- include/devices/nic/802154/DRV802_15_4.h