Skip to main content

Module types

Module types 

Source
Expand description

Newtype wrappers for SOME/IP and AUTOSAR identifiers.

These types prevent accidental ID confusion (e.g. passing a MethodId where a ServiceId is expected) and provide consistent Display and From<u16> implementations.

Structsยง

EventGroupId
SOME/IP Event Group ID (16-bit). Groups related events for subscription management.
EventId
SOME/IP Event ID (16-bit). By convention in the 0x8000..=0xFFFE range.
InstanceId
Service Instance ID (16-bit). Distinguishes multiple instances of the same service on the network.
MajorVersion
Major interface version (8-bit). Incompatible changes increment this.
MethodId
SOME/IP Method ID (16-bit). Valid range for methods: 0x0001..=0x7FFF. The range 0x8000..=0xFFFE is reserved for events.
MinorVersion
Minor interface version (32-bit). Backwards-compatible changes increment this.
ServiceId
SOME/IP Service ID (16-bit).
ServiceInstanceId
Composite identifier for a discovered service instance on the network.