Expand description
Low-level bitfield encoding and decoding.
This module provides the RawField trait for encoding/decoding enum types as
bitfields within a 32-bit integer. It also defines the pipeline and event
type enums used throughout the library.
§Bitfield Layout (32-bit event)
Bits | Field
-----|----------------
24-27| Pipeline (4 bits)
22-23| SuperType (2 bits)
16-21| SubType (6 bits)
0-15 | Source ID (16 bits)§Pipeline Codes
1: Emission (light source events)3: MCRT (Monte Carlo Radiative Transfer)5: Detection (photon detection)7: Processing (post-processing)
Enums§
- Elastic
- Elastic scattering type (bits 18-19)
- Inelastic
- Inelastic scattering type (bits 18-19)
- Interface
- SubType for Interface events (bits 16-21)
- MCRT
- SuperType categories for MCRT events (2 bits: bits 22-23)
- Material
- Material interaction type (bits 20-21)
- Pipeline
- Pipeline stages in the LIDAR modeling pipeline.
- Reflector
- SubType for Reflector events (bits 16-21)
- Scatter
Dir - Scattering direction (bits 16-17)