Files | |
file | netdev_ieee802154_minimal.h |
Provides basic functionalities to interact with an IEEE 802.15.4 networking device which implements the Netdev - Network Device Driver API. | |
file | netdev_ieee802154_minimal_internal.h |
Internal definitions for the netdev_ieee802154_minimal module. | |
Macros | |
#define | NETDEV_IEEE802154_MINIMAL_NUMOF |
Maximum number of devices to handle. | |
Functions | |
int | netdev_ieee802154_minimal_init_devs (netdev_event_cb_t cb) |
Device-under-test initialization function. | |
int | netdev_ieee802154_minimal_init (void) |
Initialize the module. | |
int | netdev_ieee802154_minimal_send (struct netdev *dev, iolist_t *pkt) |
Send a IEEE 802.15.4 frame This is wrapper for the internal netdev send function, that ensures all netdev functions are called from the same thread. | |
int | netdev_ieee802154_minimal_get (struct netdev *dev, netopt_t opt, void *data, size_t max_len) |
Get an option from netdev minimal. | |
int | netdev_ieee802154_minimal_set (struct netdev *dev, netopt_t opt, void *data, size_t len) |
Set an option to netdev minimal. | |
#define NETDEV_IEEE802154_MINIMAL_NUMOF |
Maximum number of devices to handle.
init_dev.h
. Definition at line 43 of file netdev_ieee802154_minimal.h.
int netdev_ieee802154_minimal_get | ( | struct netdev * | dev, |
netopt_t | opt, | ||
void * | data, | ||
size_t | max_len | ||
) |
Get an option from netdev minimal.
This is wrapper for the internal netdev get function, that ensures all netdev functions are called from the same thread. It is safe to call this function from anywhere.
[in] | dev | Pointer to the netdev descriptor. |
[in] | opt | The netopt option |
[out] | data | Buffer to store the option |
[in] | max_len | Maximum length of the buffer |
0 | on success |
!= | 0 on error |
int netdev_ieee802154_minimal_init | ( | void | ) |
Initialize the module.
0 | on success |
!= | 0 on error |
int netdev_ieee802154_minimal_init_devs | ( | netdev_event_cb_t | cb | ) |
Device-under-test initialization function.
[in] | cb | Callback to be set to netdev::event_callback |
0 | on success |
!= | 0 on error |
Send a IEEE 802.15.4 frame This is wrapper for the internal netdev send function, that ensures all netdev functions are called from the same thread.
It is safe to call this function from anywhere.
[in] | dev | Pointer to the netdev descriptor. |
[in] | pkt | Packet to be sent. |
0 | on success |
!= | 0 on error |
Set an option to netdev minimal.
This is wrapper for the internal netdev set function, that ensures all netdev functions are called from the same thread. It is safe to call this function from anywhere.
[in] | dev | Pointer to the netdev descriptor. |
[in] | opt | The netopt option |
[in] | data | Pointer to the data to be set |
[in] | len | Length of the data |
0 | on success |
!= | 0 on error |