Serial Input-Output#
Modules#
Enumerations#
SIO-UART Events.
SIO-SPI bit width configurations.
SIO-SPI MSB/LSB first configurations.
SIO-UART bit length configurations.
SIO-UART parity configurations.
SIO-UART stop bit configurations.
SIO-SPI channels.
Typedefs#
SIO-SPI configuration structure.
SIO-SPI Transfer structure.
SIO-I2S configuration structure.
SIO-I2S Transfer structure.
SIO-UART configuration structure.
SIO-I2S callback function pointer.
SIO-SPI callback function pointer.
SIO_UART callback function pointer.
SIO-I2C configuration structure.
Functions#
Initialize the SIO module.
Initialize the SIO-SPI module.
Assert the SIO SPI chip select.
De-assert the SIO SPI chip select.
Register the user callback function.
Un-register the user callback function.
Transfer the SIO SPI data.
Get the SIO version.
Register the user callback function.
Write data using SIO-I2C.
Read data using SIO-I2C.
Transfer data using SIO-I2C.
Generate I2C start in SIO.
Generate I2C stop in SIO.
Un-register the user callback function.
Used when UART receive is done.
Configure pin detection mode to be considered for GPIO interrupt.
Match the pattern with data to be detected.
Generate the shift clock.
Select clock.
Shift the number of bits.
Enable/disable the flow control bit.
Load data to buffer in reverse order.
Enable the common swap interrupt.
Disable the common swap interrupt.
Mask the common swap interrupt.
Unmask the common swap interrupt.
Read the common swap interrupt status.
Enable the common shift interrupt.
Disable the common shift interrupt.
Mask the common shift interrupt.
Unmask the common shift interrupt.
Read the common shift interrupt status.
Select edge of the clock cycle for sampling bits.
Read SIO buffer register.
Write into SIO buffer register.
Enumeration Documentation#
sl_sio_spi_event_t#
sl_sio_spi_event_t
SIO-SPI Events.
Enumerator | |
---|---|
SL_SIO_SPI_TX_DONE | SIO-SPI Transfer done event. |
SL_SIO_SPI_RX_DONE | SIO-SPI Receive done event. |
74
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_uart_event_t#
sl_sio_uart_event_t
SIO-UART Events.
Enumerator | |
---|---|
SL_SIO_UART_TX_DONE | SIO-UART transfer done event. |
SL_SIO_UART_RX_DONE | SIO-UART receive done event. |
SL_SIO_UART_PARITY_ERR | SIO-UART parity error. |
SL_SIO_UART_FRAMING_ERR | SIO-UART framing error. |
SL_SIO_UART_RECEIVE_CHAR | SIO-UART receive character. |
80
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_mode_t#
sl_sio_spi_mode_t
SIO-SPI modes configurations.
Enumerator | |
---|---|
SL_SIO_SPI_MODE_0 | SIO-SPI mode 0. |
SL_SIO_SPI_MODE_3 | SIO-SPI mode 3. |
89
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_bit_width_t#
sl_sio_spi_bit_width_t
SIO-SPI bit width configurations.
Enumerator | |
---|---|
SL_SIO_SPI_BIT_8 | SIO-SPI bit width 8. |
SL_SIO_SPI_BIT_16 | SIO-SPI bit width 16. |
95
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_msb_lsb_t#
sl_sio_spi_msb_lsb_t
SIO-SPI MSB/LSB first configurations.
Enumerator | |
---|---|
SL_SIO_SPI_LSB_FIRST | SIO-SPI LSB first. |
SL_SIO_SPI_MSB_FIRST | SIO-SPI MSB first. |
101
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_bit_length_t#
sl_sio_spi_bit_length_t
SIO-UART bit length configurations.
Enumerator | |
---|---|
SL_SIO_UART_BIT_8 | SIO-SPI bit length 8. |
SL_SIO_UART_BIT_16 | SIO-SPI bit length 16. |
107
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_parity_t#
sl_sio_spi_parity_t
SIO-UART parity configurations.
Enumerator | |
---|---|
SL_SIO_UART_EVEN_PARITY | SIO-SPI even parity. |
SL_SIO_UART_ODD_PARITY | SIO-SPI odd parity. |
113
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_stop_bit_t#
sl_sio_spi_stop_bit_t
SIO-UART stop bit configurations.
Enumerator | |
---|---|
SL_SIO_UART_STOP_BIT_1 | SIO-UART stop bit 1. |
SL_SIO_UART_STOP_BIT_2 | SIO-UART stop bit 2. |
119
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_channel_t#
sl_sio_channel_t
SIO-SPI channels.
Enumerator | |
---|---|
SL_SIO_CH_0 | SIO-SPI channel 0. |
SL_SIO_CH_1 | SIO-SPI channel 1. |
SL_SIO_CH_2 | SIO-SPI channel 2. |
SL_SIO_CH_3 | SIO-SPI channel 3. |
SL_SIO_CH_4 | SIO-SPI channel 4. |
SL_SIO_CH_5 | SIO-SPI channel 5. |
SL_SIO_CH_6 | SIO-SPI channel 6. |
SL_SIO_CH_7 | SIO-SPI channel 0. |
125
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
Typedef Documentation#
sl_sio_spi_config_t#
typedef stc_sio_spi_cfg_t sl_sio_spi_config_t
SIO-SPI configuration structure.
52
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_xfer_config_t#
typedef stc_sio_spi_xfer_t sl_sio_spi_xfer_config_t
SIO-SPI Transfer structure.
53
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_i2s_config_t#
typedef stc_sio_i2s_config_t sl_sio_i2s_config_t
SIO-I2S configuration structure.
54
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_i2s_xfer_config_t#
typedef stc_sio_i2s_xfer_t sl_sio_i2s_xfer_config_t
SIO-I2S Transfer structure.
55
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_uart_config_t#
typedef stc_sio_uart_config_t sl_sio_uart_config_t
SIO-UART configuration structure.
56
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_i2s_callback_t#
typedef sio_i2s_func_ptr_t sl_sio_i2s_callback_t
SIO-I2S callback function pointer.
57
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_spi_callback_t#
typedef sio_Spi_func_ptr_t sl_sio_spi_callback_t
SIO-SPI callback function pointer.
58
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_uart_callback_t#
typedef sio_Uart_func_ptr_t sl_sio_uart_callback_t
SIO_UART callback function pointer.
59
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_sio_i2c_config_t#
typedef stc_sio_i2c_config_t sl_sio_i2c_config_t
SIO-I2C configuration structure.
60
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
Function Documentation#
sl_si91x_sio_init#
sl_status_t sl_si91x_sio_init (void )
Initialize the SIO module.
[in] |
It initializes the SIO GPIO's and enables the SIO module clock. Returns
returns status 0 if successful, else error code. SL_STATUS_FAIL (0x0001) - Fail, SIO initialization failed SL_STATUS _OK (0X000) - Success, SIO initialization successful
159
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_spi_init#
sl_status_t sl_si91x_sio_spi_init (sl_sio_spi_config_t * configuration)
Initialize the SIO-SPI module.
[in] | configuration | - Pointer to SIO-SPI configuration structure sl_sio_spi_config_t |
It configures the SPI mode, bit length, bit order, SIO frequency and the SIO channels for the SPI transfer lines.
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success, SPI initialization done properly
174
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_spi_cs_assert#
sl_status_t sl_si91x_sio_spi_cs_assert (uint8_t chip_select_num)
Assert the SIO SPI chip select.
[in] | chip_select_num | - Chip select number(0 to 7) |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
187
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_spi_cs_deassert#
sl_status_t sl_si91x_sio_spi_cs_deassert (uint8_t chip_select_num)
De-assert the SIO SPI chip select.
[in] | chip_select_num | - Chip select number(0 to 7) |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
202
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_spi_register_event_callback#
sl_status_t sl_si91x_sio_spi_register_event_callback (sl_sio_spi_callback_t callback_event)
Register the user callback function.
[in] | callback_event | - Pointer to the function sl_sio_spi_callback_t which needs to be called at the time of interrupt. |
Returns
returns status 0 if successful, else error code. SL_STATUS_OK (0x0000) - Success SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS_BUSY (0x0004) - Driver is busy
216
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_spi_unregister_event_callback#
void sl_si91x_sio_spi_unregister_event_callback (void )
Un-register the user callback function.
[in] |
Returns
none
226
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_spi_transfer#
sl_status_t sl_si91x_sio_spi_transfer (sl_sio_spi_xfer_config_t * xfer_config)
Transfer the SIO SPI data.
[in] | xfer_config | - Pointer to SIO-SPI transfer configuration structure sl_sio_spi_xfer_config_t |
It is used make the SIO-SPI transfer in non blocking mode.
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
242
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_get_version#
sl_sio_version_t sl_si91x_sio_get_version (void )
Get the SIO version.
[in] |
Returns
returns structure of type sl_sio_version_t
249
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_init#
sl_status_t sl_si91x_sio_uart_init (sl_sio_uart_config_t * configuration)
N/A | configuration |
263
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_send#
sl_status_t sl_si91x_sio_uart_send (const void * buffer, uint16_t length)
N/A | buffer | |
N/A | length |
277
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_send_blocking#
sl_status_t sl_si91x_sio_uart_send_blocking (const void * buffer, uint16_t length)
N/A | buffer | |
N/A | length |
291
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_read#
sl_status_t sl_si91x_sio_uart_read (void * data_buffer, uint16_t num_bytes)
N/A | data_buffer | |
N/A | num_bytes |
306
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_read_blocking#
sl_status_t sl_si91x_sio_uart_read_blocking (void * data_buffer, uint16_t num_bytes)
N/A | data_buffer | |
N/A | num_bytes |
322
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_register_event_callback#
sl_status_t sl_si91x_sio_uart_register_event_callback (sl_sio_uart_callback_t callback_event)
Register the user callback function.
[in] | callback_event | - Pointer to the function sl_sio_uart_callback_t which needs to be called at the time of interrupt. |
sl_si91x_sio_init() sl_si91x_sio_uart_init()
Returns
returns status 0 if successful, else error code. SL_STATUS_OK (0x0000) - Success SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS_BUSY (0x0004) - Driver is busy
336
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_i2c_write#
sl_status_t sl_si91x_sio_i2c_write (stc_sio_i2c_config_t * configuration, uint8_t address, uint8_t * data, uint16_t length)
Write data using SIO-I2C.
[in] | configuration | - pointer to the I2C configuration structure stc_sio_i2c_config_t in SIO module |
[in] | address | - slave address |
[in] | data | - pointer to the data |
[in] | length | - data length |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
353
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_i2c_read#
sl_status_t sl_si91x_sio_i2c_read (stc_sio_i2c_config_t * configuration, uint8_t address, uint8_t * data, uint16_t length)
Read data using SIO-I2C.
[in] | configuration | - pointer to the I2C configuration structure stc_sio_i2c_config_t in SIO module |
[in] | address | - slave address |
[in] | data | - pointer to the data |
[in] | length | - data length |
sl_si91x_sio_init()sl_si91x_sio_i2c_generate_start()sl_si91x_sio_i2c_write() (or) sl_si91x_sio_i2c_transfer()
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
375
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_i2c_transfer#
sl_status_t sl_si91x_sio_i2c_transfer (stc_sio_i2c_config_t * configuration, uint8_t address, uint8_t * tx_buffer, uint16_t tx_length, uint8_t * rx_buffer, uint16_t rx_length)
Transfer data using SIO-I2C.
[in] | configuration | - pointer to the I2C configuration structure stc_sio_i2c_config_t in SIO module |
[in] | address | - slave address |
[in] | tx_buffer | - pointer to the data transmit buffer |
[in] | tx_length | - TX data length |
[in] | rx_buffer | - pointer to the data receive buffer |
[in] | rx_length | - RX data length |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
394
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_i2c_generate_start#
void sl_si91x_sio_i2c_generate_start (void )
Generate I2C start in SIO.
[in] |
Returns
none
407
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_i2c_generate_stop#
void sl_si91x_sio_i2c_generate_stop (void )
Generate I2C stop in SIO.
[in] |
sl_si91x_sio_init()sl_si91x_sio_i2c_generate_start()sl_si91x_sio_i2c_write() (or) sl_si91x_sio_i2c_transfer()
Returns
none
418
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_unregister_event_callback#
void sl_si91x_sio_uart_unregister_event_callback (void )
Un-register the user callback function.
[in] |
sl_si91x_sio_init() sl_si91x_sio_uart_init() sl_si91x_sio_uart_register_event_callback()
Returns
none
428
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_uart_rx_done#
void sl_si91x_sio_uart_rx_done (void )
Used when UART receive is done.
[in] |
sl_si91x_sio_init() sl_si91x_sio_uart_init() sl_si91x_sio_uart_send() sl_si91x_sio_uart_read()
Returns
none
439
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_configure_interrupt#
sl_status_t sl_si91x_sio_configure_interrupt (en_sio_channels_t channel, interrupt_flag_t flag)
Configure pin detection mode to be considered for GPIO interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | flag | : gpio interrupt generated interrupt_flag_t rise edge : 0 fall edge : 1 level 0 : 2 level 1 : 3 |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
456
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_match_pattern#
sl_status_t sl_si91x_sio_match_pattern (en_sio_channels_t channel, pattern_match_t pattern, uint8_t slice, uint32_t slice_pattern)
Match the pattern with data to be detected.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | pattern | : pattern match bit to be enabled for pattern match to take place pattern_match_t pattern match disable : 0 pattern match enable : 1 |
[in] | slice | : slice number(0,1,2,8,9,10) to select |
[in] | slice_pattern | : pattern to match for selected slice |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
473
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_shift_clock#
sl_status_t sl_si91x_sio_shift_clock (uint32_t divider, en_sio_channels_t channel)
Generate the shift clock.
[in] | divider | : Desired clock frequency configuration |
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
489
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_select_clock#
sl_status_t sl_si91x_sio_select_clock (en_sio_channels_t channel, clock_type_t clock)
Select clock.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | clock | : clock used for shift operations clock_type_t internal clock : 0 external clock : 1 |
sl_si91x_sio_init() sl_si91x_sio_uart_init() sl_si91x_sio_uart_register_event_callback() sl_si91x_sio_uart_send()
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
507
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_position_counter#
sl_status_t sl_si91x_sio_position_counter (en_sio_channels_t channel, uint32_t data_shift)
Shift the number of bits.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | data_shift | : Number of shifts to happen before reloading register with data. value to be set = (total no. of valid bits in shift register/ no. of bits per shift) -1 |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
521
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_control_flow#
sl_status_t sl_si91x_sio_control_flow (en_sio_channels_t channel, flow_control_t flow_control)
Enable/disable the flow control bit.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | flow_control | : It decides whether to continue data shifting based on data present in shift register validation flow_control_t flow control disable : 0 flow control enable : 1 |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
537
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_reverse_load#
sl_status_t sl_si91x_sio_reverse_load (en_sio_channels_t channel, reverse_load_t reverse)
Load data to buffer in reverse order.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | reverse | : If data to be shifted out MSB first, it is to be set reverse_load_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
550
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_set_interrupt#
sl_status_t sl_si91x_sio_set_interrupt (en_sio_channels_t channel)
Enable the common swap interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
562
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_clear_interrupt#
sl_status_t sl_si91x_sio_clear_interrupt (en_sio_channels_t channel)
Disable the common swap interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
574
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_mask_interrupt#
sl_status_t sl_si91x_sio_mask_interrupt (en_sio_channels_t channel)
Mask the common swap interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
586
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_unmask_interrupt#
sl_status_t sl_si91x_sio_unmask_interrupt (en_sio_channels_t channel)
Unmask the common swap interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
598
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_get_interrupt_status#
uint32_t sl_si91x_sio_get_interrupt_status (void )
Read the common swap interrupt status.
[in] |
Returns
returns interrupt status
606
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_set_shift_interrupt#
sl_status_t sl_si91x_sio_set_shift_interrupt (en_sio_channels_t channel)
Enable the common shift interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
618
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_clear_shift_interrupt#
sl_status_t sl_si91x_sio_clear_shift_interrupt (en_sio_channels_t channel)
Disable the common shift interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
630
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_mask_shift_interrupt#
sl_status_t sl_si91x_sio_mask_shift_interrupt (en_sio_channels_t channel)
Mask the common shift interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
642
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_unmask_shift_interrupt#
sl_status_t sl_si91x_sio_unmask_shift_interrupt (en_sio_channels_t channel)
Unmask the common shift interrupt.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success
654
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_shift_interrupt_status#
uint32_t sl_si91x_sio_shift_interrupt_status (void )
Read the common shift interrupt status.
[in] | : SIO channel to be selected en_sio_channels_t |
Returns
returns shift interrupt status
662
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_edge_select#
sl_status_t sl_si91x_sio_edge_select (en_sio_channels_t channel, edge_select_t edge_sel)
Select edge of the clock cycle for sampling bits.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | edge_sel | : Select the edge for bit sample to start edge_select_t positive edge : 0 negative edge : 1 |
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success \
677
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_read_buffer#
uint32_t sl_si91x_sio_read_buffer (en_sio_channels_t channel)
Read SIO buffer register.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
sl_si91x_sio_init() sl_si91x_sio_uart_init() sl_si91x_sio_uart_register_event_callback() sl_si91x_sio_uart_send()
Returns
returns data from buffer
688
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h
sl_si91x_sio_write_buffer#
sl_status_t sl_si91x_sio_write_buffer (en_sio_channels_t channel, uint32_t data)
Write into SIO buffer register.
[in] | channel | : SIO channel to be selected en_sio_channels_t |
[in] | data | : data to be written to buffer |
sl_si91x_sio_init() sl_si91x_sio_uart_init() sl_si91x_sio_uart_register_event_callback() sl_si91x_sio_uart_send()
Returns
returns status 0 if successful, else error code. SL_STATUS_INVALID_PARAMETER (0x0021) - The parameter is invalid argument SL_STATUS_NULL_POINTER (0x0022n) - The parameter is null pointer SL_STATUS _OK (0X000) - Success \
704
of file components/siwx917_soc/drivers/unified_api/inc/sl_si91x_sio.h