☰
I2cTransferStart
Methods
execute_read
execute_write
execute_write_read
execute_write_slow
new
In opentitanlib::test_utils::i2c_target
?
Type Definition
opentitanlib
::
test_utils
::
i2c_target
::
I2cTransferStart
source
·
[
−
]
pub type I2cTransferStart =
i2c_transfer_start_t
;
Implementations
§
source
§
impl
I2cTransferStart
source
pub fn
new
(address:
u8
, content: &[
u8
], stop:
bool
) -> Self
source
pub fn
execute_read
<F>(&self, uart: &dyn
Uart
, f: F) ->
Result
<
()
>
where F:
FnOnce
() ->
Result
<
()
>,
source
pub fn
execute_write
<F>(uart: &dyn
Uart
, f: F) ->
Result
<Self>
where F:
FnOnce
() ->
Result
<
()
>,
source
pub fn
execute_write_slow
<F>(uart: &dyn
Uart
, f: F) ->
Result
<Self>
where F:
FnOnce
() ->
Result
<
()
>,
source
pub fn
execute_write_read
<F>(&self, uart: &dyn
Uart
, f: F) ->
Result
<Self>
where F:
FnOnce
() ->
Result
<
()
>,