-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tock#4022 from tock/154-readme
802.15.4: Add 15.4 Stack Readme
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
IEEE 802.15.4 Stack | ||
=================== | ||
|
||
Tock supports two different implementations of an IEEE 802.15.4 stack in the | ||
kernel. The first version implements packet framing and a MAC layer, virtualizes | ||
the 15.4 interface, and provides a multi-programmable userspace interface. The second version | ||
provides userspace with the ability to send/receive raw 802.15.4 frames as well as directly control the radio, and is appropriate for access by one process at a time. | ||
|
||
In-Kernel Stack | ||
--------------- | ||
|
||
Stack overview: | ||
|
||
```text | ||
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ Syscall Interface | ||
┌──────────────────────┐ | ||
│ RadioDriver │ | ||
└──────────────────────┘ | ||
┄┄ ieee802154::device::MacDevice ┄┄ | ||
┌──────────────────────┐ | ||
│ VirtualMac │ | ||
└──────────────────────┘ | ||
┄┄ ieee802154::device::MacDevice ┄┄ | ||
┌──────────────────────┐ | ||
│ Framer │ | ||
└──────────────────────┘ | ||
┄┄ ieee802154::mac::Mac ┄┄ | ||
┌──────────────────────┐ | ||
│ MAC (ex: AwakeMac) │ | ||
└──────────────────────┘ | ||
┄┄ hil::radio::Radio ┄┄ | ||
┌──────────────────────┐ | ||
│ 802.15.4 Radio │ | ||
└──────────────────────┘ | ||
``` | ||
|
||
|
||
Raw Stack | ||
--------- | ||
|
||
Stack overview: | ||
|
||
```text | ||
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ Syscall Interface | ||
┌─────────────────────────┐ | ||
│ phy_driver::RadioDriver │ | ||
└─────────────────────────┘ | ||
┄┄ hil::radio::Radio ┄┄ | ||
┌─────────────────────────┐ | ||
│ 802.15.4 Radio │ | ||
└─────────────────────────┘ | ||
``` |