Skip to content

refactor: rynk naming polish — EncoderPosition, GATT struct rename, blob doc#927

Open
HaoboGu wants to merge 1 commit into
feat/rynk_protocolfrom
polish/rynk-naming
Open

refactor: rynk naming polish — EncoderPosition, GATT struct rename, blob doc#927
HaoboGu wants to merge 1 commit into
feat/rynk_protocolfrom
polish/rynk-naming

Conversation

@HaoboGu

@HaoboGu HaoboGu commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Naming/doc polish from the #848 branch review. Wire bytes are unchanged throughout — the snapshot diff shows only label changes, every hex column is byte-identical.

  • GetEncoderRequest becomes EncoderPosition{encoder_id, layer} and SetEncoderRequest wraps it as {position, action}, mirroring KeyPosition / SetKeyRequest; postcard flattens the nested struct so the encoding is identical
  • The GATT service structs RynkService / VialService become RynkGattService / VialGattService, ending the type-name collision with the protocol services of the same names (all pub(crate), field names unchanged)
  • payload/layout.rs now documents that the layout blob has no version byte of its own — its postcard schema rides the protocol-major rule like any response payload

Verification: rmk-types host suite (62), rmk rynk suite (617), rmk vial+BLE suite (546), rynk crate tests, rynk-wasm compiles for wasm32-unknown-unknown, examples build. Rebased onto the current branch head (post-#922) with snapshots regenerated.

Part of the post-review follow-ups for #848.

…lob doc

Wire bytes are unchanged throughout (snapshot hex verified):

- GetEncoderRequest becomes EncoderPosition and SetEncoderRequest wraps
  it as {position, action}, mirroring KeyPosition / SetKeyRequest;
  postcard flattens the nested struct so the encoding is identical.
- The GATT service structs RynkService / VialService become
  RynkGattService / VialGattService, ending the type-name collision
  with the protocol services of the same names.
- Document that the layout blob has no version byte of its own — its
  postcard schema rides the protocol-major rule like any response.

Signed-off-by: Haobo Gu <haobogu@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant