Simple Communication Interface (UART)#
Component that provides simple communication interface using UART. This component is mainly used in NCP communication cases. This is a No-Code component if used together with NCP Interface or NCP Host Communication Interface components.
Functions#
void
sl_simple_com_init(void)
void
sl_simple_com_step(void)
void
sl_simple_com_transmit(uint32_t len, uint8_t *data)
void
sl_simple_com_transmit_cb(sl_status_t status)
void
sl_simple_com_receive(void)
void
sl_simple_com_receive_cb(sl_status_t status, uint32_t len, uint8_t *data)
void
void
Macros#
#define
#define
#define
#define
#define
SL_SIMPLE_COM_TASK_NAME "simple_com_task"
#define
#define
#define
SL_SIMPLE_COM_TASK_NAME "simple_com_task"
#define
SL_SIMPLE_COM_SEMAPHORE_NAME "simple_com_semaphore"
Function Documentation#
sl_simple_com_init#
void sl_simple_com_init (void )
Parameters
N/A |
Simple Comm Init.
Definition at line
45
of file common/simple_com/sl_simple_com.h
sl_simple_com_step#
void sl_simple_com_step (void )
Parameters
N/A |
Step function (used in CPC mode)
Definition at line
50
of file common/simple_com/sl_simple_com.h
sl_simple_com_transmit#
void sl_simple_com_transmit (uint32_t len, uint8_t * data)
Parameters
N/A | len | |
N/A | data |
Transmit function
Definition at line
55
of file common/simple_com/sl_simple_com.h
sl_simple_com_transmit_cb#
void sl_simple_com_transmit_cb (sl_status_t status)
Parameters
N/A | status |
Transmit completed callback
Definition at line
60
of file common/simple_com/sl_simple_com.h
sl_simple_com_receive#
void sl_simple_com_receive (void )
Parameters
N/A |
Receive function (used in UART mode)
Definition at line
65
of file common/simple_com/sl_simple_com.h
sl_simple_com_receive_cb#
void sl_simple_com_receive_cb (sl_status_t status, uint32_t len, uint8_t * data)
Parameters
N/A | status | |
N/A | len | |
N/A | data |
Receive completed callback
Definition at line
70
of file common/simple_com/sl_simple_com.h
sl_simple_com_os_task_init#
void sl_simple_com_os_task_init (void )
Parameters
N/A |
OS initialization function - if the OS is present
Definition at line
75
of file common/simple_com/sl_simple_com.h
sl_simple_com_os_task_proceed#
void sl_simple_com_os_task_proceed (void )
Parameters
N/A |
Function to trigger the OS task to proceed - if the OS is present
Definition at line
80
of file common/simple_com/sl_simple_com.h
Macro Definition Documentation#
SL_SIMPLE_COM_RX_BUF_SIZE#
#define SL_SIMPLE_COM_RX_BUF_SIZEValue:
(260)
Definition at line
44
of file common/simple_com/config/sl_simple_com_config.h
SL_SIMPLE_COM_TX_BUF_SIZE#
#define SL_SIMPLE_COM_TX_BUF_SIZEValue:
(260)
Definition at line
49
of file common/simple_com/config/sl_simple_com_config.h
SL_SIMPLE_COM_TASK_PRIO#
#define SL_SIMPLE_COM_TASK_PRIOValue:
4
Definition at line
44
of file common/simple_com/config/sl_simple_com_freertos_config.h
SL_SIMPLE_COM_TASK_STACK#
#define SL_SIMPLE_COM_TASK_STACKValue:
1024
Definition at line
49
of file common/simple_com/config/sl_simple_com_freertos_config.h
SL_SIMPLE_COM_TASK_NAME#
#define SL_SIMPLE_COM_TASK_NAMEValue:
"simple_com_task"
Definition at line
54
of file common/simple_com/config/sl_simple_com_freertos_config.h
SL_SIMPLE_COM_TASK_PRIO#
#define SL_SIMPLE_COM_TASK_PRIOValue:
4
Definition at line
44
of file common/simple_com/config/sl_simple_com_micriumos_config.h
SL_SIMPLE_COM_TASK_STACK#
#define SL_SIMPLE_COM_TASK_STACKValue:
1024
Definition at line
49
of file common/simple_com/config/sl_simple_com_micriumos_config.h
SL_SIMPLE_COM_TASK_NAME#
#define SL_SIMPLE_COM_TASK_NAMEValue:
"simple_com_task"
Definition at line
54
of file common/simple_com/config/sl_simple_com_micriumos_config.h
SL_SIMPLE_COM_SEMAPHORE_NAME#
#define SL_SIMPLE_COM_SEMAPHORE_NAMEValue:
"simple_com_semaphore"
Definition at line
59
of file common/simple_com/config/sl_simple_com_micriumos_config.h