![Logo](AFBR-S50.ico) |
AFBR-S50 API Reference Manual
v1.6.5
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
Go to the documentation of this file.
104 #define SCI_DEVICE_ID_DEFAULT 0
109 #define SCI_DEVICE_ID_FIRST_VALID 1
void(* sci_error_cb_t)(status_t status)
Callback function type for SCI error.
Definition: sci.h:160
status_t(* sci_tx_cmd_fct_t)(sci_device_t deviceID, sci_frame_t *frame, sci_param_t param, sci_data_t data)
Transmitting command function definition.
Definition: sci.h:143
status_t SCI_SetRxCommand(sci_cmd_t cmd, sci_rx_cmd_fct_t fct)
Sets a Rx command function in the list of available commands.
Definition: sci.c:145
status_t SCI_SetPostRxCommand(sci_cmd_t cmd, sci_rx_cmd_fct_t rxfct, sci_rx_cmd_fct_t pfct)
Sets Rx and post Rx command functions in the list of available commands.
Definition: sci.c:149
uint8_t sci_device_t
Definition: sci.h:99
status_t(* sci_rx_cmd_cb_t)(sci_frame_t *frame)
Callback function type for received SCI data frames.
Definition: sci.h:153
void SCI_RemoveErrorCallback(void)
Removes the previously installed callback function.
Definition: sci.c:140
status_t SCI_UnsetCommand(sci_cmd_t cmd)
Unsets a command from the list of available commands.
Definition: sci.c:188
status_t SCI_SetTxCommand(sci_cmd_t cmd, sci_tx_cmd_fct_t txfct)
Sets a Tx command function in the list of available commands.
Definition: sci.c:153
status_t SCI_SetRxTxCommand(sci_cmd_t cmd, sci_rx_cmd_fct_t rxfct, sci_tx_cmd_fct_t txfct)
Sets the Rx and Tx command functions in the list of available commands.
Definition: sci.c:157
status_t SCI_InvokeRxCommand(sci_frame_t *frame)
Invokes the previously received user command.
Definition: sci.c:205
const void * sci_data_t
Definition: sci.h:92
status_t(* sci_rx_cmd_fct_t)(sci_device_t deviceID, sci_frame_t *frame)
Received command invocation function definition.
Definition: sci.h:123
This file is part of the AFBR-S50 Explorer Application.
Data buffer for outgoing frames.
Definition: sci_internal_types.h:109
uint8_t sci_cmd_t
Definition: sci.h:81
void SCI_SetErrorCallback(sci_error_cb_t cb)
Installs a callback routine for the error event.
Definition: sci.c:136
status_t SCI_SendCommand(sci_device_t deviceID, sci_cmd_t cmd, sci_param_t param, sci_data_t data)
Sends a command via the SCI module.
Definition: sci.c:324
status_t SCI_SetCommand(sci_cmd_t cmd, sci_rx_cmd_fct_t rxfct, sci_tx_cmd_fct_t txfct, sci_rx_cmd_fct_t pfct)
Sets the Rx and Tx command functions in the list of available commands.
Definition: sci.c:163
status_t SCI_Init(void)
Initialize the SCI module.
Definition: sci.c:108
SCI Data Frame Interface.
void SCI_RemoveRxCommandCallback(void)
Removes the previously installed callback function.
Definition: sci.c:132
static status_t status
Definition: argus_xtalk_cal_cli.c:140
void SCI_SetRxCommandCallback(sci_rx_cmd_cb_t cb)
Installs a callback routine for command received event.
Definition: sci.c:128
int32_t status_t
Type used for all status and error return values.
Definition: argus_status.h:70
uint32_t sci_param_t
Definition: sci.h:87