Crate nrf_mpsl_sys

Crate nrf_mpsl_sys 

Source
Expand description

See Nordic’s documentation for usage and details.

Structs§

NRF_GPIO_Type
GPIO Port 0 (P0)
mpsl_clock_hfclk_ctrl_source_t
Type representing HFCLK clock handling external API that is expected by MPSL to be delivered on init.
mpsl_clock_lfclk_cfg_t
Type representing LFCLK oscillator source.
mpsl_clock_lfclk_ctrl_source_t
Type representing LFCLK clock handling external API that is expected by MPSL to be delivered on init.
mpsl_cx_interface_t
Set of pointers to functions in MPSL Coexistence interface.
mpsl_cx_request_t
Structure with parameters describing next coexistence request.
mpsl_ecb_hal_data_t
AES ECB data structure
mpsl_fem_calibration_data_t__bindgen_ty_1
Calibration data for simple GPIO.
mpsl_fem_calibration_data_t__bindgen_ty_2
Calibration data for nRF21540 GPIO.
mpsl_fem_calibration_data_t__bindgen_ty_3
Calibration data for nRF21540 GPIO/SPI.
mpsl_fem_calibration_point_t
Type binding gain of the FEM with PA power control value for calibration purposes.
mpsl_fem_external_conditions_t
External conditions that affect Front-End Module’s power model.
mpsl_fem_gpio_pin_config_t
Configuration parameters for pins that control Front End Module.
mpsl_fem_gpiote_pin_config_t
Configuration parameters for pins that control Front End Module through a GPIOTE peripheral.
mpsl_fem_pin_t
GPIO pin and port to be used by Front End Module.
mpsl_fem_power_model_output_t
Decomposition of a single value of output power on the antenna.
mpsl_fem_power_model_t
Front-End Module power model.
mpsl_pm_params_t
MPSL Power Management parameters.
mpsl_timeslot_request_earliest_t
Parameters for a request for a timeslot as early as possible.
mpsl_timeslot_request_normal_t
Parameters for a normal timeslot request.
mpsl_timeslot_request_t
Timeslot request parameters.
mpsl_timeslot_signal_return_param_t
Return parameters of the timeslot signal callback.
mpsl_timeslot_signal_return_param_t__bindgen_ty_1__bindgen_ty_1
mpsl_timeslot_signal_return_param_t__bindgen_ty_1__bindgen_ty_2
mpsl_tx_power_envelope_t
Max TX power envelope. It is up to the application to allocate memory for an envelope.

Constants§

MPSL_BUILD_REVISION_SIZE
MPSL_CLOCK_HF_LATENCY_BEST
MPSL_CLOCK_HF_LATENCY_TYPICAL
MPSL_CLOCK_HF_LATENCY_WORST_CASE
MPSL_CLOCK_LF_SRC_EXT_FULL_SWING
< Apply external full swing signal to XL1, leave XL2 grounded or unconnected. This option is not available on nRF53.
MPSL_CLOCK_LF_SRC_EXT_LOW_SWING
< Apply external low swing signal to XL1, ground XL2. This option is not available on nRF53.
MPSL_CLOCK_LF_SRC_RC
< LFCLK RC oscillator.
MPSL_CLOCK_LF_SRC_SYNTH
< LFCLK Synthesized from HFCLK.
MPSL_CLOCK_LF_SRC_XTAL
< LFCLK crystal oscillator.
MPSL_CX_OP_IDLE_LISTEN
Listening for asynchronous transmissions
MPSL_CX_OP_RX
Active reception
MPSL_CX_OP_TX
Active transmission
MPSL_CX_REQ_TRIG_INSTANT
< Request is triggered instantly, during mpsl_cx_request call
MPSL_DEFAULT_CLOCK_ACCURACY_PPM
MPSL_DEFAULT_SKIP_WAIT_LFCLK_STARTED
MPSL_ECB_CIPHERTEXT_LENGTH
MPSL_ECB_CLEARTEXT_IN_LOCAL_RAM
MPSL_ECB_CLEARTEXT_LENGTH
MPSL_ECB_INPUT_LE
MPSL_ECB_KEY_LENGTH
MPSL_ECB_NO_FLAGS
MPSL_ECB_OUTPUT_LE
MPSL_HIGH_IRQ_PRIORITY
MPSL_PHY_BLE_1M
MPSL_PHY_BLE_2M
MPSL_PHY_BLE_LR125Kbit
MPSL_PHY_BLE_LR500Kbit
MPSL_PHY_Ieee802154_250Kbit
MPSL_PM_EVENT_STATE_BEFORE_EVENT
MPSL_PM_EVENT_STATE_NO_EVENTS_LEFT
MPSL_PM_LOW_LATENCY_STATE_OFF
MPSL_PM_LOW_LATENCY_STATE_ON
MPSL_PM_LOW_LATENCY_STATE_RELEASING
MPSL_PM_LOW_LATENCY_STATE_REQUESTING
MPSL_PPI_CHANNELS_USED_MASK
MPSL_RECOMMENDED_RC_CTIV
MPSL_RECOMMENDED_RC_TEMP_CTIV
MPSL_RESERVED_PPI_CHANNELS
MPSL_TIMESLOT_CONTEXT_COUNT_MAX
MPSL_TIMESLOT_CONTEXT_SIZE
MPSL_TIMESLOT_DISTANCE_MAX_US
MPSL_TIMESLOT_EARLIEST_TIMEOUT_MAX_US
MPSL_TIMESLOT_EXTENSION_MARGIN_MIN_US
MPSL_TIMESLOT_EXTENSION_PROCESSING_TIME_MAX_US
MPSL_TIMESLOT_EXTENSION_TIME_MIN_US
MPSL_TIMESLOT_HFCLK_CFG_NO_GUARANTEE
< This configuration allows for earlier and tighter scheduling of timeslots. The RC oscillator may be the clock source in part or for the whole duration of the timeslot. The RC oscillator’s accuracy must therefore be taken into consideration.
MPSL_TIMESLOT_HFCLK_CFG_XTAL_GUARANTEED
< The high frequency clock source is the external crystal for the whole duration of the timeslot. This should be the preferred option for events that use the radio or require high timing accuracy.
MPSL_TIMESLOT_LENGTH_MAX_US
MPSL_TIMESLOT_LENGTH_MIN_US
MPSL_TIMESLOT_PRIORITY_HIGH
< High priority.
MPSL_TIMESLOT_PRIORITY_NORMAL
< Low priority.
MPSL_TIMESLOT_REQ_TYPE_EARLIEST
< Request timeslot as early as possible. This should always be used for the first request in a session.
MPSL_TIMESLOT_REQ_TYPE_NORMAL
< Normal timeslot request.
MPSL_TIMESLOT_SIGNAL_ACTION_END
< End the current timeslot event.
MPSL_TIMESLOT_SIGNAL_ACTION_EXTEND
< Request an extension of the current timeslot event. Maximum execution time for this action: MPSL_TIMESLOT_EXTENSION_PROCESSING_TIME_MAX_US. This action must be started at least MPSL_TIMESLOT_EXTENSION_MARGIN_MIN_US before the end of a timeslot event.
MPSL_TIMESLOT_SIGNAL_ACTION_NONE
< Return without action.
MPSL_TIMESLOT_SIGNAL_ACTION_REQUEST
< Request a new timeslot event.
MPSL_TIMESLOT_SIGNAL_BLOCKED
< The previous request was blocked. The signal will be executed in the same context as mpsl_low_priority_process.
MPSL_TIMESLOT_SIGNAL_CANCELLED
< The previous request was cancelled. The signal will be executed in the same context as mpsl_low_priority_process.
MPSL_TIMESLOT_SIGNAL_EXTEND_FAILED
< This signal indicates extend action failed. The signal will be executed in the same context as the previous signal.
MPSL_TIMESLOT_SIGNAL_EXTEND_SUCCEEDED
< This signal indicates extend action succeeded. The signal will be executed in the same context as the previous signal.
MPSL_TIMESLOT_SIGNAL_INVALID_RETURN
< The previous timeslot callback return value was invalid. The signal will be executed in the same context as the previous signal which had an invalid return value. The application should avoid to continuously provide invalid return values. Doing so, will lead to an infinite loop.
MPSL_TIMESLOT_SIGNAL_OVERSTAYED
< The timeslot event was closed too late. An assert will be triggered after the processing of this signal completes.
MPSL_TIMESLOT_SIGNAL_RADIO
< This signal indicates the RADIO interrupt. The signal will be executed in the same context as MPSL_IRQ_RADIO_Handler.
MPSL_TIMESLOT_SIGNAL_SESSION_CLOSED
< The session has been closed.
MPSL_TIMESLOT_SIGNAL_SESSION_IDLE
< The timeslot session has no more pending requests. The signal will be executed in the same context as mpsl_low_priority_process.
MPSL_TIMESLOT_SIGNAL_START
< This signal indicates the start of the timeslot. The signal will be executed in the same context as MPSL_IRQ_TIMER0_Handler.
MPSL_TIMESLOT_SIGNAL_TIMER0
< This signal indicates the TIMER0 interrupt. The signal will be executed in the same context as MPSL_IRQ_TIMER0_Handler. The timer being used is defined by MPSL_TIMER0.
MPSL_TIMESLOT_START_JITTER_US
MPSL_TOTAL_NUM_OF_802154_CHANNELS
MPSL_TOTAL_NUM_OF_BLE_CHANNELS
MPSL_WORST_CLOCK_ACCURACY_PPM
NRF_EACCES
NRF_EADDRINUSE
NRF_EAFNOSUPPORT
NRF_EAGAIN
NRF_ECANCELED
NRF_ECONNRESET
NRF_EFAULT
NRF_EHOSTDOWN
NRF_EINPROGRESS
NRF_EINVAL
NRF_EIO
NRF_EISCONN
NRF_EKEYEXPIRED
NRF_EKEYREJECTED
NRF_EKEYREVOKED
NRF_ENETDOWN
NRF_ENETUNREACH
NRF_ENOBUFS
NRF_ENOENT
NRF_ENOKEY
NRF_ENOMEM
NRF_ENOPROTOOPT
NRF_ENOTCONN
NRF_EOPNOTSUPP
NRF_EPERM
NRF_EPROTONOSUPPORT
NRF_EPROTOTYPE
NRF_ESOCKTNOSUPPORT
NRF_ETIMEDOUT
UINT8_MAX

Functions§

MPSL_IRQ_CLOCK_Handler
POWER_CLOCK interrupt handler
MPSL_IRQ_RADIO_Handler
RADIO interrupt handler
MPSL_IRQ_RTC0_Handler
RTC0 interrupt handler
MPSL_IRQ_TIMER0_Handler
TIMER0 interrupt handler.
mpsl_build_revision_get
Obtain build revision
mpsl_calibration_timer_handle
Application needs to call this when calibration shall occur.
mpsl_clock_ctrl_source_register
Register an external clock driver.
mpsl_clock_ctrl_source_unregister
Unregisters external clock driver from MPSL.
mpsl_clock_hfclk_is_running
Checks if the high frequency crystal oscillator is running.
mpsl_clock_hfclk_latency_set
Informs MPSL about the actual ramp-up time of the high-frequency crystal oscillator.
mpsl_clock_hfclk_release
Releases the high frequency crystal oscillator.
mpsl_clock_hfclk_request
Request the high frequency crystal oscillator.
mpsl_clock_task_trigger_on_rtc_start_set
Trigger a task upon start of the RTC.
mpsl_constlat_request_callback
MPSL requesting CONSTLAT to be on.
mpsl_cx_granted_ops_get
Get list of radio operations currently granted by PTA.
mpsl_cx_interface_set
Connects to one of Coexistence PTA client implementation
mpsl_cx_register_callback
Register callback function called when radio operations granted by PTA change.
mpsl_cx_release
Release last radio operation requested from PTA
mpsl_cx_req_grant_delay_get
Get time PTA needs to respond with grant signal to request signal.
mpsl_cx_request
Request radio operation from PTA
mpsl_ecb_block_encrypt
Encrypts a block according to the specified parameters.
mpsl_ecb_block_encrypt_extended
Encrypts a block according to the specified parameters.
mpsl_fem_device_config_254_apply_get
Gets flag which determines whether DEVICE-CONFIG-254 shall be applied.
mpsl_fem_device_config_254_apply_set
Sets flag which determines whether DEVICE-CONFIG-254 shall be applied.
mpsl_fem_init
Initializes API of MPSL FEM.
mpsl_fem_power_model_set
Sets Front-End Module power model.
mpsl_init
MPSL initialization
mpsl_is_initialized
Returns true if MPSL is already initialized, false otherwise.
mpsl_low_priority_process
MPSL low priority processing handler.
mpsl_lowpower_request_callback
De-request CONSTLAT to be on.
mpsl_pan_rfu
RFU
mpsl_pm_init
Initialize MPSL external Power Management integration.
mpsl_pm_low_latency_requested
Get low latency request status.
mpsl_pm_low_latency_state_get
Get low latency state.
mpsl_pm_low_latency_state_set
Set low latency state.
mpsl_pm_params_get
Get next expected event time.
mpsl_pm_uninit
Uninitialize MPSL external Power Management integration.
mpsl_temperature_get
Get the temperature measured on the chip
mpsl_timeslot_request
Requests a timeslot.
mpsl_timeslot_session_close
Closes a session for timeslot requests.
mpsl_timeslot_session_count_set
Set or update the MPSL timeslot configuration.
mpsl_timeslot_session_open
Opens a session for timeslot requests.
mpsl_tx_power_channel_map_set
Sets maximum TX power envelope. If the PHY already has an envelope configured, it will be over-written.
mpsl_tx_power_dbm_to_radio_register_convert
Converts radio power in dBm to RADIO.TXPOWER register code.
mpsl_tx_power_radio_supported_power_adjust
Adjusts TX power to a value supported by the RADIO peripheral.
mpsl_uninit
Uninitialize MPSL. Stops clocks and scheduler. This will release all peripherals and reduce power usage.

Type Aliases§

IRQn_Type
Configuration_of_CMSIS
MPSL_CLOCK_LF_SRC
Low frequency clock source.
MPSL_TIMESLOT_HFCLK_CFG
Timeslot high frequency clock source configuration.
MPSL_TIMESLOT_PRIORITY
Timeslot event priorities.
MPSL_TIMESLOT_REQUEST_TYPE
Timeslot request type.
MPSL_TIMESLOT_SIGNAL
The timeslot signal types.
MPSL_TIMESLOT_SIGNAL_ACTION
The actions requested by the signal callback.
mpsl_assert_handler_t
Function prototype for the assert handler.
mpsl_clock_hfclk_callback_t
High frequency clock callback.
mpsl_clock_hfclk_latency_config_t
mpsl_cx_cb_t
Callback used to notify radio protocol about changes of granted radio operations.
mpsl_cx_op_map_t
Bitmap representing a list of radio operations.
mpsl_cx_op_t
Radio operations which may be requested from or granted by PTA.
mpsl_cx_prio_t
Priority of given radio operation.
mpsl_cx_req_trig_t
Coexistence request signal triggers.
mpsl_fem_pa_power_control_t
Type for PA power control to be applied to Front-End Module, depending on its type.
mpsl_fem_power_model_init_t
Pointer to function to be used by MPSL to initialize the model.
mpsl_fem_power_model_output_fetch_t
Pointer to function to be used by MPSL to retrieve the model’s output.
mpsl_phy_t
PHYs supported for limiting channel TX power
mpsl_pm_event_state_t
MPSL Power Management state in regards to next event.
mpsl_pm_low_latency_state_t
MPSL Power Management low latency state.
mpsl_timeslot_callback_t
The timeslot signal callback type.
mpsl_timeslot_session_id_t
The timeslot session id type
mpsl_tx_power_t
TX power, dBm.

Unions§

mpsl_fem_calibration_data_t
Union that provides data for calibrating Front-End Module gain.
mpsl_timeslot_request_t__bindgen_ty_1
mpsl_timeslot_signal_return_param_t__bindgen_ty_1
mpsl_tx_power_envelope_t__bindgen_ty_1