pk-command 1.0.0

A communication protocol designed for embedded devices
Documentation
  • Coverage
  • 58.06%
    36 out of 62 items documented0 out of 28 items with examples
  • Size
  • Source code size: 104.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.92 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • lingrottin/PK-Command
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lingrottin
pk-command-1.0.0 has been yanked.

PK Command

Crates.io Version

[中文]

This repository contains the specification and an implementation of the PK Command, a communication protocol designed for embedded devices.

Library usage

This Rust library is universal on both host and device. The caller needs to construct a PkCommand instance on the host or device and keep calling the instance's poll method.

Variable and method management is provided by types that implement the PkVariableAccessor and PkMethodAccessor traits, where the non-blocking mechanism of methods is based on the Pollable trait. This library also provides predefined PkVHashmapWrapper (for variables), PkMHashmapWrapper (for methods), and PkPollable.

Example

See the test case.

The Protocol