Loading...
Searching...
No Matches

Detailed Description

Author
Jose Ignacio Alamos jiala.nosp@m.mos@.nosp@m.uc.cl
Baptiste Clenet bapcl.nosp@m.enet.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

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 "event.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...
 

Functions

void recv_pkt (otInstance *aInstance, netdev_t *dev)
 Gets packet from driver and tells OpenThread about the reception.
 
void send_pkt (otInstance *aInstance, netdev_t *dev, netdev_event_t event)
 Inform OpenThread when tx is finished.
 
event_queue_topenthread_get_evq (void)
 Get OpenThread event queue.
 
otInstance * openthread_get_instance (void)
 Get pointer to the OpenThread instance.
 
void openthread_bootstrap (void)
 Bootstrap OpenThread.
 
void openthread_radio_init (netdev_t *dev, uint8_t *tb, uint8_t *rb)
 Init OpenThread radio.
 
int openthread_netdev_init (char *stack, int stacksize, char priority, const char *name, netdev_t *netdev)
 Starts OpenThread thread.
 
void ot_random_init (void)
 Init OpenThread random.
 

Openthread constants

#define OPENTHREAD_NUMBER_OF_SERIAL_BUFFER   (1U)
 number of serial reception buffer
 
#define OPENTHREAD_SIZEOF_LENGTH_AND_FREEBUFF   (4U)
 sizeof in bytes the two first members of she serial structure
 
#define OPENTHREAD_SERIAL_BUFFER_SIZE   OPENTHREAD_SIZEOF_LENGTH_AND_FREEBUFF + 100
 sizeof the serial buffer
 
#define OPENTHREAD_SERIAL_BUFFER__PAYLOAD_SIZE   OPENTHREAD_SERIAL_BUFFER_SIZE - OPENTHREAD_SIZEOF_LENGTH_AND_FREEBUFF
 sizeof the spinel payload data
 
#define OPENTHREAD_ERROR_NO_EMPTY_SERIAL_BUFFER   -1
 error when no more buffer available
 
#define OPENTHREAD_SERIAL_BUFFER_STATUS_FREE   (0x0001)
 serial buffer ready to use
 
#define OPENTHREAD_SERIAL_BUFFER_STATUS_READY_TO_PROCESS   (0x0002)
 serial buffer ready for processing
 
#define OPENTHREAD_SERIAL_BUFFER_STATUS_FULL   (0x0004)
 serial buffer payload full
 
#define IEEE802154_MAX_LENGTH   (127U)
 Max length for IEEE802154 frame.
 
#define OPENTHREAD_NETDEV_BUFLEN   (IEEE802154_MAX_LENGTH)
 Max length for a netdev buffer