Functions#
This section provides a reference to the External Host Interface API Functions.
Functions#
This API used to block MCU for specified time.
It retrieves a timestamp.
This API calculates the timestamp difference.
Checks if the device is initialized.
Sets sleep Indication GPIO to LOW.
Function Documentation#
sl_si91x_host_delay_ms#
void sl_si91x_host_delay_ms (uint32_t delay_milliseconds)
This API used to block MCU for specified time.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | delay_milliseconds | time delay in milliseconds |
sl_si91x_host_get_timestamp#
sl_si91x_host_timestamp_t sl_si91x_host_get_timestamp (void )
It retrieves a timestamp.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
sl_si91x_host_timestamp_t
sl_si91x_host_elapsed_time#
sl_si91x_host_timestamp_t sl_si91x_host_elapsed_time (uint32_t starting_timestamp)
This API calculates the timestamp difference.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | starting_timestamp | This parameter is used to calculate the elapsed time. |
Returns
sl_si91x_host_timestamp_t
sl_si91x_is_device_initialized#
bool sl_si91x_is_device_initialized (void )
Checks if the device is initialized.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function is used to verify if the device has been properly initialized.
Returns
bool. Returns true if the device is initialized, false otherwise.
sl_si91x_host_clear_sleep_indicator#
void sl_si91x_host_clear_sleep_indicator (void )
Sets sleep Indication GPIO to LOW.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |