![]() |
no-OS
|
Cross-core payload in shared SRAM2. More...
#include <imu_ipc_shared.h>
Public Attributes | |
| volatile uint32_t | magic |
| volatile uint32_t | state |
| volatile uint32_t | prod_id |
| volatile uint32_t | diag |
| volatile uint32_t | seq |
| volatile uint32_t | host_ready |
| volatile uint32_t | data_cntr |
| volatile int32_t | gyro_x |
| volatile int32_t | gyro_y |
| volatile int32_t | gyro_z |
| volatile int32_t | accel_x |
| volatile int32_t | accel_y |
| volatile int32_t | accel_z |
| volatile uint32_t | stage |
| volatile int32_t | init_ret |
| volatile uint32_t | fault_magic |
| volatile uint32_t | fault_cause |
| volatile uint32_t | fault_epc |
| volatile uint32_t | fault_tval |
| volatile uint32_t | trace_idx |
| volatile uint32_t | trace_log [16] |
Cross-core payload in shared SRAM2.
The RISC-V writes lifecycle, fault, and raw ADIS sample fields. The ARM reads those raw samples and owns gyro integration, keeping the math in one place.
Ordering: the RISC-V updates the payload then bumps seq and rings the host doorbell; the ARM waits the doorbell, then reads a coherent snapshot (both cores are data-cacheless, so volatile access + the doorbell handshake are sufficient — see the dual_core example notes on why the RISC-V issues no fence).
| volatile int32_t imu_shared_t::accel_x |
| volatile int32_t imu_shared_t::accel_y |
| volatile int32_t imu_shared_t::accel_z |
| volatile uint32_t imu_shared_t::data_cntr |
| volatile uint32_t imu_shared_t::diag |
| volatile uint32_t imu_shared_t::fault_cause |
| volatile uint32_t imu_shared_t::fault_epc |
| volatile uint32_t imu_shared_t::fault_magic |
| volatile uint32_t imu_shared_t::fault_tval |
| volatile int32_t imu_shared_t::gyro_x |
| volatile int32_t imu_shared_t::gyro_y |
| volatile int32_t imu_shared_t::gyro_z |
| volatile uint32_t imu_shared_t::host_ready |
| volatile int32_t imu_shared_t::init_ret |
| volatile uint32_t imu_shared_t::magic |
| volatile uint32_t imu_shared_t::prod_id |
| volatile uint32_t imu_shared_t::seq |
| volatile uint32_t imu_shared_t::stage |
| volatile uint32_t imu_shared_t::state |
| volatile uint32_t imu_shared_t::trace_idx |
| volatile uint32_t imu_shared_t::trace_log[16] |