Detailed Description

Jose Ignacio Alamos
Baptiste Clenet

Definition in file ot.h.

#include "net/netopt.h"
#include "net/ieee802154.h"
#include "net/ethernet.h"
#include "net/netdev.h"
#include "thread.h"
#include "openthread/instance.h"
+ Include dependency graph for ot.h:

Go to the source code of this file.

Data Structures

struct  serial_msg_t
 Struct containing a serial message. More...
struct  ot_job_t
 Struct containing an OpenThread job. More...


void recv_pkt (otInstance *aInstance, netdev_t *dev)
 Gets packet from driver and tells OpenThread about the reception. More...
void send_pkt (otInstance *aInstance, netdev_t *dev, netdev_event_t event)
 Inform OpenThread when tx is finished. More...
void openthread_bootstrap (void)
 Bootstrap OpenThread.
void openthread_radio_init (netdev_t *dev, uint8_t *tb, uint8_t *rb)
 Init OpenThread radio. More...
int openthread_netdev_init (char *stack, int stacksize, char priority, const char *name, netdev_t *netdev)
 Starts OpenThread thread. More...
kernel_pid_t openthread_get_pid (void)
 get PID of OpenThread thread. More...
void ot_random_init (void)
 Init OpenThread random.
uint8_t ot_exec_command (otInstance *ot_instance, const char *command, void *arg, void *answer)
 Execute OpenThread command. More...
uint8_t ot_call_command (char *command, void *arg, void *answer)
 Call OpenThread command in same thread as OT core (due to concurrency). More...

Openthread message types

 xtimer message receiver event
 message received from driver
 event indicating a serial (UART) message was sent to OpenThread
#define OPENTHREAD_MSG_TYPE_RECV   (0x2238)
 event for frame reception
 event indicating an OT_JOB message

Openthread constants

 number of serial reception buffer
 sizeof in bytes the two first members of she serial structure
 sizeof the serial buffer
 sizeof the spinel payload data
 error when no more buffer available
 serial buffer ready to use
 serial buffer ready for processsing
 serial buffer payload full
#define IEEE802154_MAX_LENGTH   (127U)
 Max length for IEEE802154 frame.
 Max length for a netdev buffer.