#![no_std] //! SHEIKHA HARDWARE & ORBITAL RUST SDK — V94.0 (`#![no_std]`) //! Sovereign Owner: Salman Alrajeh Trading Est. (CR: 2051263653) pub const SHK_BRAND_MAGIC: u32 = 0x5348_4B5E; pub const SHK_CR_IDENTITY: u64 = 2_051_263_653; pub const SHK_CCSDS_ORBIT_APID: u16 = 0x0394; #[repr(C, packed)] #[derive(Clone, Copy)] pub struct SheikhaTelemetryFrame { pub magic: u32, pub version: u16, pub ccsds_apid: u16, pub cr_identity: u64, pub sensor_id: u32, pub reading_milli: i32, pub actuation_locked: u8, pub seal_fnv1a: u32, } pub const fn fnv1a_32(bytes: &[u8]) -> u32 { let mut h: u32 = 2_166_136_261; let mut i = 0; while i < bytes.len() { h ^= bytes[i] as u32; h = h.wrapping_mul(16_777_619); i += 1; } h } pub const fn allow_actuation(twin_ok: bool, dual_key: bool, hazard: bool) -> bool { twin_ok && dual_key && !hazard }