TI-OpenThread  1.08.07.01
Macros | Functions | Variables
CC1352P_4_LAUNCHXL/thread/empty_ftd/empty.c File Reference
#include <openthread/config.h>
#include <openthread-core-config.h>
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <sched.h>
#include <pthread.h>
#include <unistd.h>
#include <mqueue.h>
#include <ti/drivers/GPIO.h>
#include <openthread/dataset.h>
#include <openthread/platform/logging.h>
#include <openthread/platform/uart.h>
#include <openthread/tasklet.h>
#include <openthread/thread.h>
#include "otsupport/otrtosapi.h"
#include "otsupport/otinstance.h"
#include "ti_drivers_config.h"
#include "empty.h"
#include "tiop_ui.h"
#include "disp_utils.h"
#include "otstack.h"
#include "task_config.h"
#include "tiop_config.h"
+ Include dependency graph for CC1352P_4_LAUNCHXL/thread/empty_ftd/empty.c:

Macros

#define EMPTY_PROC_QUEUE_MAX_MSG   (6)
 Size of the message queue for Empty_procQueue More...
 

Functions

void Empty_postEvt (Empty_evt event)
 Posts an event to the Empty task. More...
 
void * empty_task (void *arg0)
 
void empty_taskCreate (void)
 
void otPlatLog (otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat,...)
 
void otPlatUartReceived (const uint8_t *aBuf, uint16_t aBufLength)
 
void otPlatUartSendDone (void)
 
static void processEvent (Empty_evt event)
 Processes the events. More...
 
void processKeyChangeCB (Button_Handle _buttonHandle, Button_EventMask _buttonEvents)
 Handles the key press events. More...
 
static void processOtStackEvents (uint8_t event, void *aContext)
 Processes the OT stack events. More...
 

Variables

static mqd_t Empty_procQueueDesc
 
const char Empty_procQueueName [] = "/em_process"
 
static Button_Handle rightButtonHandle
 
static char stack [TASK_CONFIG_EMPTY_TASK_STACK_SIZE]
 
static char statusBuf [MAX_STATUS_LINE_VALUE_LEN]
 

Macro Definition Documentation

§ EMPTY_PROC_QUEUE_MAX_MSG

#define EMPTY_PROC_QUEUE_MAX_MSG   (6)

Size of the message queue for Empty_procQueue

There are 5/8 events that can be raised, it is unlikely that they will all be raised at the same time. Add one buffer queue element.

Referenced by empty_task().

Function Documentation

§ empty_task()

void* empty_task ( void *  arg0)

§ processOtStackEvents()

static void processOtStackEvents ( uint8_t  event,
void *  aContext 
)
static

Processes the OT stack events.

Parameters
eventevent identifier
aContextcontext pointer for the event
Returns
None

References Empty_evtDevRoleChanged, Empty_evtNwkJoined, Empty_evtNwkJoinFailure, Empty_evtNwkSetup, Empty_postEvt(), OT_STACK_EVENT_DEV_ROLE_CHANGED, OT_STACK_EVENT_NWK_DATA_CHANGED, OT_STACK_EVENT_NWK_JOINED, and OT_STACK_EVENT_NWK_JOINED_FAILURE.

Referenced by empty_task().

§ processKeyChangeCB()

void processKeyChangeCB ( Button_Handle  _buttonHandle,
Button_EventMask  _buttonEvents 
)

Handles the key press events.

Handles the key pressed events for examples.

Parameters
_buttonHandleidentifies which keys were pressed
_buttonEventsidentifies the event that occurred on the key
Returns
None

References Empty_evtKeyRight, Empty_postEvt(), and rightButtonHandle.

§ processEvent()

static void processEvent ( Empty_evt  event)
static

§ otPlatLog()

void otPlatLog ( otLogLevel  aLogLevel,
otLogRegion  aLogRegion,
const char *  aFormat,
  ... 
)

Documented in openthread/platform/logging.h.

§ otPlatUartReceived()

void otPlatUartReceived ( const uint8_t *  aBuf,
uint16_t  aBufLength 
)

Documented in openthread/platform/uart.h.

§ otPlatUartSendDone()

void otPlatUartSendDone ( void  )

Documented in openthread/platform/uart.h.

§ Empty_postEvt()

void Empty_postEvt ( Empty_evt  event)

§ empty_taskCreate()

void empty_taskCreate ( void  )

Variable Documentation

§ Empty_procQueueName

const char Empty_procQueueName[] = "/em_process"

Referenced by empty_task().

§ Empty_procQueueDesc

mqd_t Empty_procQueueDesc
static

Referenced by Empty_postEvt(), and empty_task().

§ stack

Referenced by empty_taskCreate().

§ statusBuf

char statusBuf[MAX_STATUS_LINE_VALUE_LEN]
static

Referenced by empty_task().

§ rightButtonHandle

Button_Handle rightButtonHandle
static

Referenced by empty_task(), and processKeyChangeCB().

© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale