11//! Blocking SPI API
22
33/// Blocking transfer
4- pub trait Transfer < W > {
4+ pub trait Transfer < W = u8 > {
55 /// Error type
66 type Error : crate :: spi:: Error ;
77
@@ -20,7 +20,7 @@ impl<T: Transfer<W>, W> Transfer<W> for &mut T {
2020}
2121
2222/// Blocking write
23- pub trait Write < W > {
23+ pub trait Write < W = u8 > {
2424 /// Error type
2525 type Error : crate :: spi:: Error ;
2626
@@ -37,7 +37,7 @@ impl<T: Write<W>, W> Write<W> for &mut T {
3737}
3838
3939/// Blocking write (iterator version)
40- pub trait WriteIter < W > {
40+ pub trait WriteIter < W = u8 > {
4141 /// Error type
4242 type Error : crate :: spi:: Error ;
4343
@@ -62,7 +62,7 @@ impl<T: WriteIter<W>, W> WriteIter<W> for &mut T {
6262///
6363/// This allows composition of SPI operations into a single bus transaction
6464#[ derive( Debug , PartialEq ) ]
65- pub enum Operation < ' a , W : ' static > {
65+ pub enum Operation < ' a , W : ' static = u8 > {
6666 /// Write data from the provided buffer, discarding read data
6767 Write ( & ' a [ W ] ) ,
6868 /// Write data out while reading data into the provided buffer
@@ -71,7 +71,7 @@ pub enum Operation<'a, W: 'static> {
7171
7272/// Transactional trait allows multiple actions to be executed
7373/// as part of a single SPI transaction
74- pub trait Transactional < W : ' static > {
74+ pub trait Transactional < W : ' static = u8 > {
7575 /// Associated error type
7676 type Error : crate :: spi:: Error ;
7777
0 commit comments