time-alarm-service-messages: Make discriminants pub#714
time-alarm-service-messages: Make discriminants pub#714kurtjd wants to merge 1 commit intoOpenDevicePartnership:v0.2.0from
Conversation
|
The discriminant should come from the MCTP packet header, no? I think I might be missing something |
Yep, playing around with it the discriminant is found within the ODP response header as we discussed offline. So closing this as not necessary. Thanks! |
sounds good, filed #715 on myself to clean up some of the header generation macros so they're easier to use from the host side; for now you can probably just manually grab it from the header like you mentioned |
If we want to deserialize a time-alarm response, we need to know the discriminant:
embedded-services/time-alarm-service-messages/src/lib.rs
Line 292 in 16c4364
However, we can't call the trait method
discriminant()yet since we don't have a constructedAcpiTimeAlarmResponse. So, make theDiscriminantenums public so we can use that to pass a value intodeserializefor the response type we are expecting.This is needed for ec-test-app, e.g.: