MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_ctx_t Struct Reference

Runtime context for MRTKLIB processing. More...

#include <mrtk_context.h>

Public Attributes

volatile int is_running
volatile int cancel_requested
mrtk_err_t last_err_code
char last_err_msg [256]
int trace_level
FILE * trace_fp
uint32_t tick_trace
void * user_data
mrtk_showmsg_cb_t cb_showmsg

Detailed Description

Runtime context for MRTKLIB processing.

Holds per-session state: runtime control flags, error state, trace configuration, user data, and application callbacks. All major processing and trace functions accept a pointer to this structure as their first argument.

Definition at line 73 of file mrtk_context.h.

Member Data Documentation

◆ cancel_requested

volatile int mrtk_ctx_t::cancel_requested

Non-zero to request cancellation

Definition at line 76 of file mrtk_context.h.

Referenced by mrtk_ctx_create().

◆ cb_showmsg

mrtk_showmsg_cb_t mrtk_ctx_t::cb_showmsg

Status message callback (may be NULL)

Definition at line 89 of file mrtk_context.h.

Referenced by mrtk_ctx_create().

◆ is_running

volatile int mrtk_ctx_t::is_running

Non-zero while processing is active

Definition at line 75 of file mrtk_context.h.

Referenced by mrtk_ctx_create().

◆ last_err_code

mrtk_err_t mrtk_ctx_t::last_err_code

Most recent error code

Definition at line 79 of file mrtk_context.h.

Referenced by mrtk_ctx_create().

◆ last_err_msg

char mrtk_ctx_t::last_err_msg[256]

Most recent error message

Definition at line 80 of file mrtk_context.h.

Referenced by mrtk_ctx_create().

◆ tick_trace

uint32_t mrtk_ctx_t::tick_trace

Tick count at traceopen (for elapsed time)

Definition at line 85 of file mrtk_context.h.

Referenced by mrtk_ctx_create(), traceopen(), and tracet().

◆ trace_fp

FILE* mrtk_ctx_t::trace_fp

Trace output stream (NULL = disabled)

Definition at line 84 of file mrtk_context.h.

Referenced by mrtk_ctx_create(), mrtk_ctx_destroy(), trace(), traceb(), traceclose(), tracegnav(), tracehnav(), tracemat(), tracenav(), traceobs(), traceopen(), tracepclk(), tracepeph(), and tracet().

◆ trace_level

int mrtk_ctx_t::trace_level

Trace level (0:off, 1:error..5:verbose)

Definition at line 83 of file mrtk_context.h.

Referenced by mrtk_ctx_create(), trace(), traceb(), tracegnav(), tracehnav(), tracelevel(), tracemat(), tracenav(), traceobs(), tracepclk(), tracepeph(), and tracet().

◆ user_data

void* mrtk_ctx_t::user_data

Application-specific data pointer

Definition at line 88 of file mrtk_context.h.

Referenced by mrtk_ctx_create().


The documentation for this struct was generated from the following file: