cdx_cal.h

Ginmake identity measurements and restored model calibration access.

CM7 owns XCP and persistence; live multi-value updates can tear.

Source code: View source

Contents

Macros

Macro Description
CDX_CAL_IDENTITY_ADDRESS Read-only XCP EPK address in CM7’s view of the model descriptor.
CDX_CAL_IDENTITY_SIZE Identity span: EPK, IPC hash and model name, including zero padding.
CDX_CAL_PARAMETERS_ADDRESS Virtual XCP base of the declared shared calibration span, not a C pointer.

Typedefs

Typedef Description
CDX_CAL_IDENTITY Read-only firmware identity measurement exposed by CM7 XCP.

Functions

Function Description
CDX_calibration_data_get Obtain the active shared calibration data without copying defaults.

Macros

CDX_CAL_IDENTITY_ADDRESS

1#define CDX_CAL_IDENTITY_ADDRESS 0x20200418u

Read-only XCP EPK address in CM7’s view of the model descriptor.

CDX_CAL_IDENTITY_SIZE

1#define CDX_CAL_IDENTITY_SIZE 160u

Identity span: EPK, IPC hash and model name, including zero padding.

CDX_CAL_PARAMETERS_ADDRESS

1#define CDX_CAL_PARAMETERS_ADDRESS 0xf000u

Virtual XCP base of the declared shared calibration span, not a C pointer.

Typedefs

CDX_CAL_IDENTITY

Read-only firmware identity measurement exposed by CM7 XCP.

1typedef struct CDX_CAL_IDENTITY_STRUCT CDX_CAL_IDENTITY

Note: This is a Ginmake description, not an additional allocated object. Model-specific writable persistent parameters belong in the model’s own annotated header or Simulink.Parameter inputs, not in this API header.

Functions

CDX_calibration_data_get

Obtain the active shared calibration data without copying defaults.

1void * CDX_calibration_data_get(uint32_t *size)

Returns

Pointer into noncacheable shared RAM, or NULL without valid calibration.

Note: Available during CDX_app_system_init and model initialization after CM7 restores compatible stored values. Valid only for the current model session. The same span is registered with CDX_memory_* at its actual 32-bit address. Do not overwrite it with model defaults during initialization. No inter-core mutex or model pause is provided; grouped writes and snapshots may tear.

Parameters

  • uint32_t * size: Nonnull output receives the model-declared size, zero on failure.

Location: cdx_cal.h:81