1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) 2026 Rigless Labs.
// SPDX-License-Identifier: MIT OR Apache-2.0
//! The chip end of a serial peripheral interface bus.
use Any;
use crateDeviceContext;
/// An integrated circuit on a serial interface's wires: what a board hangs off an MCU.
///
/// The bus is full duplex: a word crosses each way at the same time, so a peer answers in the same call
/// it is given. Both words are as they travel, after the controller's bit order has had its say, because
/// that is what is on the wire. The controller calls this and never learns what is behind it; a chip
/// implements it and never learns there is a controller. What a chip measures is set through the chip's
/// own methods, which the board that hung it reaches through the interface's `chip_mut`; nothing of the
/// world crosses here.