nRF5 SDK for Thread v0.10.0
Typedefs | Functions
Command Line Interface

This module includes functions that control the Thread stack's execution. More...

Typedefs

typedef int(* otCliConsoleOutputCallback )(const char *aBuf, uint16_t aBufLength, void *aContext)
 

Functions

void otCliConsoleInit (otInstance *aInstance, otCliConsoleOutputCallback aCallback, void *aContext)
 
void otCliConsoleInputLine (char *aBuf, uint16_t aBufLength)
 
void otCliUartInit (otInstance *aInstance)
 

Detailed Description

This module includes functions that control the Thread stack's execution.

Typedef Documentation

typedef int(* otCliConsoleOutputCallback)(const char *aBuf, uint16_t aBufLength, void *aContext)

This function pointer is called to notify about Console output.

Parameters
[in]aBufA pointer to a buffer with an output.
[in]aBufLengthA length of the output data stored in the buffer.
[out]aContextA user context pointer.
Returns
Number of bytes processed by the callback.

Function Documentation

void otCliConsoleInit ( otInstance *  aInstance,
otCliConsoleOutputCallback  aCallback,
void *  aContext 
)

Initialize the CLI CONSOLE module.

Parameters
[in]aInstanceThe OpenThread instance structure.
[in]aCallbackA callback method called to process console output.
[in]aContextA user context pointer.
void otCliConsoleInputLine ( char *  aBuf,
uint16_t  aBufLength 
)

This method is called to feed in a console input line.

Parameters
[in]aBufA pointer to a buffer with an input.
[in]aBufLengthA length of the input data stored in the buffer.
void otCliUartInit ( otInstance *  aInstance)

Initialize the CLI UART module.

Parameters
[in]aInstanceThe OpenThread instance structure.

Documentation feedback | Developer Zone | Subscribe | Updated