rust/bt-common: Migrate to strongly typed Address

Define Address as a strongly typed struct wrapping `[u8; 6]` with
convenience helpers and constants to make interactions cleaner and
safer.

Update crates that currently use Address with the modified version.

Update bt-bass to use strongly typed Address instead of using raw bytes.

Bug: 542348813
Test: ./presubmit.sh
Change-Id: Ie1048a177100196edfeb14252d04bc076df39107
Reviewed-on: https://bluetooth-review.googlesource.com/c/bluetooth/+/3560
10 files changed
tree: 268df426bf340102fa2c0d969a92627eebe45a8b
  1. .agents/
  2. docs/
  3. infra/
  4. rust/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. GEMINI.md
  9. LICENSE
  10. OWNERS
  11. PATENTS
  12. presubmit.sh
  13. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared libraries and tools that can be useful for multiple Bluetooth stacks.

These tools and libraries are meant to be:

  • Stack-agnostic and platform-agnostic
  • Implement a useful subset of a published Bluetooth specification.

It has been started as a repository for developing Rust crates but can be easily expanded to include libraries and tools written in other languages.

What is this not?

It is not a full Bluetooth stack. Google has two officially open-source Bluetooth stacks:

Structure

  • rust - Rust Crates
  • docs - General documentation (documentation for each library/tool is included in their directories)