atsamd_hal::sercom::spi::size

Trait Length

Source
pub trait Length:
    Sealed
    + Unsigned
    + 'static {
    type Word: 'static;
}
Expand description

Type-level enum representing the SPI transaction length, in bytes

This trait acts as both a type-level enum, forming a type class for transaction lengths, as well as a type-level function mapping the Length to the corresponding Word size.

The SPI transaction length is represented in the type domain using Unsigned types from the typenum crate. The length can be set statically, using a length from U1 to U255, or it can be set dynamically, using the DynLength marker type. All valid Length types are re-exported in this module.

The SPI transaction length affects the word size for the embedded HAL traits, as well as other aspects of the SPI API. Transaction lengths of 1-4 only require a single read/write of the DATA register, so they have an AtomicSize behave differently than longer transaction lengths.

Required Associated Types§

Source

type Word: 'static

Word size for the transaction length

For lengths 1-4, this type is u8, u16 or u32. For longer transactions, this type is [u8, Self::USIZE].

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Length for U1

Source§

impl Length for U2

Source§

impl Length for U3

Source§

impl Length for U4

Source§

impl Length for U5

Source§

type Word = [u8; 5]

Source§

impl Length for U6

Source§

type Word = [u8; 6]

Source§

impl Length for U7

Source§

type Word = [u8; 7]

Source§

impl Length for U8

Source§

type Word = [u8; 8]

Source§

impl Length for U9

Source§

type Word = [u8; 9]

Source§

impl Length for U10

Source§

type Word = [u8; 10]

Source§

impl Length for U11

Source§

type Word = [u8; 11]

Source§

impl Length for U12

Source§

type Word = [u8; 12]

Source§

impl Length for U13

Source§

type Word = [u8; 13]

Source§

impl Length for U14

Source§

type Word = [u8; 14]

Source§

impl Length for U15

Source§

type Word = [u8; 15]

Source§

impl Length for U16

Source§

type Word = [u8; 16]

Source§

impl Length for U17

Source§

type Word = [u8; 17]

Source§

impl Length for U18

Source§

type Word = [u8; 18]

Source§

impl Length for U19

Source§

type Word = [u8; 19]

Source§

impl Length for U20

Source§

type Word = [u8; 20]

Source§

impl Length for U21

Source§

type Word = [u8; 21]

Source§

impl Length for U22

Source§

type Word = [u8; 22]

Source§

impl Length for U23

Source§

type Word = [u8; 23]

Source§

impl Length for U24

Source§

type Word = [u8; 24]

Source§

impl Length for U25

Source§

type Word = [u8; 25]

Source§

impl Length for U26

Source§

type Word = [u8; 26]

Source§

impl Length for U27

Source§

type Word = [u8; 27]

Source§

impl Length for U28

Source§

type Word = [u8; 28]

Source§

impl Length for U29

Source§

type Word = [u8; 29]

Source§

impl Length for U30

Source§

type Word = [u8; 30]

Source§

impl Length for U31

Source§

type Word = [u8; 31]

Source§

impl Length for U32

Source§

type Word = [u8; 32]

Source§

impl Length for U33

Source§

type Word = [u8; 33]

Source§

impl Length for U34

Source§

type Word = [u8; 34]

Source§

impl Length for U35

Source§

type Word = [u8; 35]

Source§

impl Length for U36

Source§

type Word = [u8; 36]

Source§

impl Length for U37

Source§

type Word = [u8; 37]

Source§

impl Length for U38

Source§

type Word = [u8; 38]

Source§

impl Length for U39

Source§

type Word = [u8; 39]

Source§

impl Length for U40

Source§

type Word = [u8; 40]

Source§

impl Length for U41

Source§

type Word = [u8; 41]

Source§

impl Length for U42

Source§

type Word = [u8; 42]

Source§

impl Length for U43

Source§

type Word = [u8; 43]

Source§

impl Length for U44

Source§

type Word = [u8; 44]

Source§

impl Length for U45

Source§

type Word = [u8; 45]

Source§

impl Length for U46

Source§

type Word = [u8; 46]

Source§

impl Length for U47

Source§

type Word = [u8; 47]

Source§

impl Length for U48

Source§

type Word = [u8; 48]

Source§

impl Length for U49

Source§

type Word = [u8; 49]

Source§

impl Length for U50

Source§

type Word = [u8; 50]

Source§

impl Length for U51

Source§

type Word = [u8; 51]

Source§

impl Length for U52

Source§

type Word = [u8; 52]

Source§

impl Length for U53

Source§

type Word = [u8; 53]

Source§

impl Length for U54

Source§

type Word = [u8; 54]

Source§

impl Length for U55

Source§

type Word = [u8; 55]

Source§

impl Length for U56

Source§

type Word = [u8; 56]

Source§

impl Length for U57

Source§

type Word = [u8; 57]

Source§

impl Length for U58

Source§

type Word = [u8; 58]

Source§

impl Length for U59

Source§

type Word = [u8; 59]

Source§

impl Length for U60

Source§

type Word = [u8; 60]

Source§

impl Length for U61

Source§

type Word = [u8; 61]

Source§

impl Length for U62

Source§

type Word = [u8; 62]

Source§

impl Length for U63

Source§

type Word = [u8; 63]

Source§

impl Length for U64

Source§

type Word = [u8; 64]

Source§

impl Length for U65

Source§

type Word = [u8; 65]

Source§

impl Length for U66

Source§

type Word = [u8; 66]

Source§

impl Length for U67

Source§

type Word = [u8; 67]

Source§

impl Length for U68

Source§

type Word = [u8; 68]

Source§

impl Length for U69

Source§

type Word = [u8; 69]

Source§

impl Length for U70

Source§

type Word = [u8; 70]

Source§

impl Length for U71

Source§

type Word = [u8; 71]

Source§

impl Length for U72

Source§

type Word = [u8; 72]

Source§

impl Length for U73

Source§

type Word = [u8; 73]

Source§

impl Length for U74

Source§

type Word = [u8; 74]

Source§

impl Length for U75

Source§

type Word = [u8; 75]

Source§

impl Length for U76

Source§

type Word = [u8; 76]

Source§

impl Length for U77

Source§

type Word = [u8; 77]

Source§

impl Length for U78

Source§

type Word = [u8; 78]

Source§

impl Length for U79

Source§

type Word = [u8; 79]

Source§

impl Length for U80

Source§

type Word = [u8; 80]

Source§

impl Length for U81

Source§

type Word = [u8; 81]

Source§

impl Length for U82

Source§

type Word = [u8; 82]

Source§

impl Length for U83

Source§

type Word = [u8; 83]

Source§

impl Length for U84

Source§

type Word = [u8; 84]

Source§

impl Length for U85

Source§

type Word = [u8; 85]

Source§

impl Length for U86

Source§

type Word = [u8; 86]

Source§

impl Length for U87

Source§

type Word = [u8; 87]

Source§

impl Length for U88

Source§

type Word = [u8; 88]

Source§

impl Length for U89

Source§

type Word = [u8; 89]

Source§

impl Length for U90

Source§

type Word = [u8; 90]

Source§

impl Length for U91

Source§

type Word = [u8; 91]

Source§

impl Length for U92

Source§

type Word = [u8; 92]

Source§

impl Length for U93

Source§

type Word = [u8; 93]

Source§

impl Length for U94

Source§

type Word = [u8; 94]

Source§

impl Length for U95

Source§

type Word = [u8; 95]

Source§

impl Length for U96

Source§

type Word = [u8; 96]

Source§

impl Length for U97

Source§

type Word = [u8; 97]

Source§

impl Length for U98

Source§

type Word = [u8; 98]

Source§

impl Length for U99

Source§

type Word = [u8; 99]

Source§

impl Length for U100

Source§

type Word = [u8; 100]

Source§

impl Length for U101

Source§

type Word = [u8; 101]

Source§

impl Length for U102

Source§

type Word = [u8; 102]

Source§

impl Length for U103

Source§

type Word = [u8; 103]

Source§

impl Length for U104

Source§

type Word = [u8; 104]

Source§

impl Length for U105

Source§

type Word = [u8; 105]

Source§

impl Length for U106

Source§

type Word = [u8; 106]

Source§

impl Length for U107

Source§

type Word = [u8; 107]

Source§

impl Length for U108

Source§

type Word = [u8; 108]

Source§

impl Length for U109

Source§

type Word = [u8; 109]

Source§

impl Length for U110

Source§

type Word = [u8; 110]

Source§

impl Length for U111

Source§

type Word = [u8; 111]

Source§

impl Length for U112

Source§

type Word = [u8; 112]

Source§

impl Length for U113

Source§

type Word = [u8; 113]

Source§

impl Length for U114

Source§

type Word = [u8; 114]

Source§

impl Length for U115

Source§

type Word = [u8; 115]

Source§

impl Length for U116

Source§

type Word = [u8; 116]

Source§

impl Length for U117

Source§

type Word = [u8; 117]

Source§

impl Length for U118

Source§

type Word = [u8; 118]

Source§

impl Length for U119

Source§

type Word = [u8; 119]

Source§

impl Length for U120

Source§

type Word = [u8; 120]

Source§

impl Length for U121

Source§

type Word = [u8; 121]

Source§

impl Length for U122

Source§

type Word = [u8; 122]

Source§

impl Length for U123

Source§

type Word = [u8; 123]

Source§

impl Length for U124

Source§

type Word = [u8; 124]

Source§

impl Length for U125

Source§

type Word = [u8; 125]

Source§

impl Length for U126

Source§

type Word = [u8; 126]

Source§

impl Length for U127

Source§

type Word = [u8; 127]

Source§

impl Length for U128

Source§

type Word = [u8; 128]

Source§

impl Length for U129

Source§

type Word = [u8; 129]

Source§

impl Length for U130

Source§

type Word = [u8; 130]

Source§

impl Length for U131

Source§

type Word = [u8; 131]

Source§

impl Length for U132

Source§

type Word = [u8; 132]

Source§

impl Length for U133

Source§

type Word = [u8; 133]

Source§

impl Length for U134

Source§

type Word = [u8; 134]

Source§

impl Length for U135

Source§

type Word = [u8; 135]

Source§

impl Length for U136

Source§

type Word = [u8; 136]

Source§

impl Length for U137

Source§

type Word = [u8; 137]

Source§

impl Length for U138

Source§

type Word = [u8; 138]

Source§

impl Length for U139

Source§

type Word = [u8; 139]

Source§

impl Length for U140

Source§

type Word = [u8; 140]

Source§

impl Length for U141

Source§

type Word = [u8; 141]

Source§

impl Length for U142

Source§

type Word = [u8; 142]

Source§

impl Length for U143

Source§

type Word = [u8; 143]

Source§

impl Length for U144

Source§

type Word = [u8; 144]

Source§

impl Length for U145

Source§

type Word = [u8; 145]

Source§

impl Length for U146

Source§

type Word = [u8; 146]

Source§

impl Length for U147

Source§

type Word = [u8; 147]

Source§

impl Length for U148

Source§

type Word = [u8; 148]

Source§

impl Length for U149

Source§

type Word = [u8; 149]

Source§

impl Length for U150

Source§

type Word = [u8; 150]

Source§

impl Length for U151

Source§

type Word = [u8; 151]

Source§

impl Length for U152

Source§

type Word = [u8; 152]

Source§

impl Length for U153

Source§

type Word = [u8; 153]

Source§

impl Length for U154

Source§

type Word = [u8; 154]

Source§

impl Length for U155

Source§

type Word = [u8; 155]

Source§

impl Length for U156

Source§

type Word = [u8; 156]

Source§

impl Length for U157

Source§

type Word = [u8; 157]

Source§

impl Length for U158

Source§

type Word = [u8; 158]

Source§

impl Length for U159

Source§

type Word = [u8; 159]

Source§

impl Length for U160

Source§

type Word = [u8; 160]

Source§

impl Length for U161

Source§

type Word = [u8; 161]

Source§

impl Length for U162

Source§

type Word = [u8; 162]

Source§

impl Length for U163

Source§

type Word = [u8; 163]

Source§

impl Length for U164

Source§

type Word = [u8; 164]

Source§

impl Length for U165

Source§

type Word = [u8; 165]

Source§

impl Length for U166

Source§

type Word = [u8; 166]

Source§

impl Length for U167

Source§

type Word = [u8; 167]

Source§

impl Length for U168

Source§

type Word = [u8; 168]

Source§

impl Length for U169

Source§

type Word = [u8; 169]

Source§

impl Length for U170

Source§

type Word = [u8; 170]

Source§

impl Length for U171

Source§

type Word = [u8; 171]

Source§

impl Length for U172

Source§

type Word = [u8; 172]

Source§

impl Length for U173

Source§

type Word = [u8; 173]

Source§

impl Length for U174

Source§

type Word = [u8; 174]

Source§

impl Length for U175

Source§

type Word = [u8; 175]

Source§

impl Length for U176

Source§

type Word = [u8; 176]

Source§

impl Length for U177

Source§

type Word = [u8; 177]

Source§

impl Length for U178

Source§

type Word = [u8; 178]

Source§

impl Length for U179

Source§

type Word = [u8; 179]

Source§

impl Length for U180

Source§

type Word = [u8; 180]

Source§

impl Length for U181

Source§

type Word = [u8; 181]

Source§

impl Length for U182

Source§

type Word = [u8; 182]

Source§

impl Length for U183

Source§

type Word = [u8; 183]

Source§

impl Length for U184

Source§

type Word = [u8; 184]

Source§

impl Length for U185

Source§

type Word = [u8; 185]

Source§

impl Length for U186

Source§

type Word = [u8; 186]

Source§

impl Length for U187

Source§

type Word = [u8; 187]

Source§

impl Length for U188

Source§

type Word = [u8; 188]

Source§

impl Length for U189

Source§

type Word = [u8; 189]

Source§

impl Length for U190

Source§

type Word = [u8; 190]

Source§

impl Length for U191

Source§

type Word = [u8; 191]

Source§

impl Length for U192

Source§

type Word = [u8; 192]

Source§

impl Length for U193

Source§

type Word = [u8; 193]

Source§

impl Length for U194

Source§

type Word = [u8; 194]

Source§

impl Length for U195

Source§

type Word = [u8; 195]

Source§

impl Length for U196

Source§

type Word = [u8; 196]

Source§

impl Length for U197

Source§

type Word = [u8; 197]

Source§

impl Length for U198

Source§

type Word = [u8; 198]

Source§

impl Length for U199

Source§

type Word = [u8; 199]

Source§

impl Length for U200

Source§

type Word = [u8; 200]

Source§

impl Length for U201

Source§

type Word = [u8; 201]

Source§

impl Length for U202

Source§

type Word = [u8; 202]

Source§

impl Length for U203

Source§

type Word = [u8; 203]

Source§

impl Length for U204

Source§

type Word = [u8; 204]

Source§

impl Length for U205

Source§

type Word = [u8; 205]

Source§

impl Length for U206

Source§

type Word = [u8; 206]

Source§

impl Length for U207

Source§

type Word = [u8; 207]

Source§

impl Length for U208

Source§

type Word = [u8; 208]

Source§

impl Length for U209

Source§

type Word = [u8; 209]

Source§

impl Length for U210

Source§

type Word = [u8; 210]

Source§

impl Length for U211

Source§

type Word = [u8; 211]

Source§

impl Length for U212

Source§

type Word = [u8; 212]

Source§

impl Length for U213

Source§

type Word = [u8; 213]

Source§

impl Length for U214

Source§

type Word = [u8; 214]

Source§

impl Length for U215

Source§

type Word = [u8; 215]

Source§

impl Length for U216

Source§

type Word = [u8; 216]

Source§

impl Length for U217

Source§

type Word = [u8; 217]

Source§

impl Length for U218

Source§

type Word = [u8; 218]

Source§

impl Length for U219

Source§

type Word = [u8; 219]

Source§

impl Length for U220

Source§

type Word = [u8; 220]

Source§

impl Length for U221

Source§

type Word = [u8; 221]

Source§

impl Length for U222

Source§

type Word = [u8; 222]

Source§

impl Length for U223

Source§

type Word = [u8; 223]

Source§

impl Length for U224

Source§

type Word = [u8; 224]

Source§

impl Length for U225

Source§

type Word = [u8; 225]

Source§

impl Length for U226

Source§

type Word = [u8; 226]

Source§

impl Length for U227

Source§

type Word = [u8; 227]

Source§

impl Length for U228

Source§

type Word = [u8; 228]

Source§

impl Length for U229

Source§

type Word = [u8; 229]

Source§

impl Length for U230

Source§

type Word = [u8; 230]

Source§

impl Length for U231

Source§

type Word = [u8; 231]

Source§

impl Length for U232

Source§

type Word = [u8; 232]

Source§

impl Length for U233

Source§

type Word = [u8; 233]

Source§

impl Length for U234

Source§

type Word = [u8; 234]

Source§

impl Length for U235

Source§

type Word = [u8; 235]

Source§

impl Length for U236

Source§

type Word = [u8; 236]

Source§

impl Length for U237

Source§

type Word = [u8; 237]

Source§

impl Length for U238

Source§

type Word = [u8; 238]

Source§

impl Length for U239

Source§

type Word = [u8; 239]

Source§

impl Length for U240

Source§

type Word = [u8; 240]

Source§

impl Length for U241

Source§

type Word = [u8; 241]

Source§

impl Length for U242

Source§

type Word = [u8; 242]

Source§

impl Length for U243

Source§

type Word = [u8; 243]

Source§

impl Length for U244

Source§

type Word = [u8; 244]

Source§

impl Length for U245

Source§

type Word = [u8; 245]

Source§

impl Length for U246

Source§

type Word = [u8; 246]

Source§

impl Length for U247

Source§

type Word = [u8; 247]

Source§

impl Length for U248

Source§

type Word = [u8; 248]

Source§

impl Length for U249

Source§

type Word = [u8; 249]

Source§

impl Length for U250

Source§

type Word = [u8; 250]

Source§

impl Length for U251

Source§

type Word = [u8; 251]

Source§

impl Length for U252

Source§

type Word = [u8; 252]

Source§

impl Length for U253

Source§

type Word = [u8; 253]

Source§

impl Length for U254

Source§

type Word = [u8; 254]

Source§

impl Length for U255

Source§

type Word = [u8; 255]

Source§

impl Length for DynLength