|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Experimental SDR observation operator with RTL-SDR and synthetic fallback status. More...


Go to the source code of this file.
Classes | |
| struct | SimSdrObserverConfig |
| Configuration for an SDR observer operator. More... | |
| struct | SimSdrObserverStatus |
| Runtime status snapshot for an SDR observer operator. More... | |
Macros | |
| #define | SIM_SDR_OBSERVER_STATUS_MESSAGE_MAX 159U |
Typedefs | |
| typedef enum SimSdrObserverDemod | SimSdrObserverDemod |
| Demodulation mode applied to observed SDR IQ samples. | |
| typedef enum SimSdrObserverBackendMode | SimSdrObserverBackendMode |
| Active SDR sample backend. | |
| typedef enum SimSdrObserverFallbackReason | SimSdrObserverFallbackReason |
| Reason the observer most recently fell back from hardware input. | |
| typedef struct SimSdrObserverConfig | SimSdrObserverConfig |
| Configuration for an SDR observer operator. | |
| typedef struct SimSdrObserverStatus | SimSdrObserverStatus |
| Runtime status snapshot for an SDR observer operator. | |
Enumerations | |
| enum | SimSdrObserverDemod { SIM_SDR_OBSERVER_DEMOD_RAW = 0 , SIM_SDR_OBSERVER_DEMOD_AM , SIM_SDR_OBSERVER_DEMOD_FM , SIM_SDR_OBSERVER_DEMOD_PM } |
| Demodulation mode applied to observed SDR IQ samples. More... | |
| enum | SimSdrObserverBackendMode { SIM_SDR_OBSERVER_BACKEND_UNKNOWN = 0 , SIM_SDR_OBSERVER_BACKEND_SYNTHETIC , SIM_SDR_OBSERVER_BACKEND_RTL_SDR } |
| Active SDR sample backend. More... | |
| enum | SimSdrObserverFallbackReason { SIM_SDR_OBSERVER_FALLBACK_NONE = 0 , SIM_SDR_OBSERVER_FALLBACK_RTLSDR_DISABLED , SIM_SDR_OBSERVER_FALLBACK_DEVICE_OPEN_FAILED , SIM_SDR_OBSERVER_FALLBACK_DEVICE_CONFIG_FAILED , SIM_SDR_OBSERVER_FALLBACK_BUFFER_ALLOCATION_FAILED , SIM_SDR_OBSERVER_FALLBACK_READ_FAILED } |
| Reason the observer most recently fell back from hardware input. More... | |
Functions | |
| const char * | sim_sdr_observer_backend_mode_name (SimSdrObserverBackendMode mode) |
| Return the schema name for an SDR backend mode. | |
| const char * | sim_sdr_observer_fallback_reason_name (SimSdrObserverFallbackReason reason) |
| Return the schema name for an SDR fallback reason. | |
| SimResult | sim_add_sdr_observer_operator (struct SimContext *context, const SimSdrObserverConfig *config, size_t *out_index) |
| Register an experimental SDR observer operator. | |
| SimResult | sim_sdr_observer_config (struct SimContext *context, size_t operator_index, SimSdrObserverConfig *out_config) |
| Copy the current SDR observer configuration from a registered operator. | |
| SimResult | sim_sdr_observer_status (struct SimContext *context, size_t operator_index, SimSdrObserverStatus *out_status) |
| Copy runtime status from a registered experimental SDR observer. | |
| SimResult | sim_sdr_observer_update (struct SimContext *context, size_t operator_index, const SimSdrObserverConfig *config) |
| Replace the configuration of a registered experimental SDR observer. | |
Experimental SDR observation operator with RTL-SDR and synthetic fallback status.
| enum SimSdrObserverDemod |
Reason the observer most recently fell back from hardware input.
| SimResult sim_add_sdr_observer_operator | ( | struct SimContext * | context, |
| const SimSdrObserverConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register an experimental SDR observer operator.
| context | Simulation context that will own the operator. | |
| config | Optional SDR observer configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| const char * sim_sdr_observer_backend_mode_name | ( | SimSdrObserverBackendMode | mode | ) |
Return the schema name for an SDR backend mode.
| mode | Backend mode enum value. |
| SimResult sim_sdr_observer_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimSdrObserverConfig * | out_config | ||
| ) |
Copy the current SDR observer configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_sdr_observer_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| const char * sim_sdr_observer_fallback_reason_name | ( | SimSdrObserverFallbackReason | reason | ) |
Return the schema name for an SDR fallback reason.
| reason | Fallback reason enum value. |
| SimResult sim_sdr_observer_status | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimSdrObserverStatus * | out_status | ||
| ) |
Copy runtime status from a registered experimental SDR observer.
Status includes active backend, fallback reason, read counters, and sticky backend error details.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_sdr_observer_operator(). | |
| [out] | out_status | Receives the current observer status snapshot. |
| SimResult sim_sdr_observer_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimSdrObserverConfig * | config | ||
| ) |
Replace the configuration of a registered experimental SDR observer.
config is required. A successful update refreshes backend state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the SDR observer to update. |
| config | Replacement SDR observer configuration. |