iPXE
|
Bit-bashing operations. More...
#include <bitbash.h>
Data Fields | |
void(* | open )(struct bit_basher *basher) |
Open bit-bashing interface (optional) More... | |
void(* | close )(struct bit_basher *basher) |
Close bit-bashing interface (optional) More... | |
void(* | write )(struct bit_basher *basher, unsigned int bit_id, unsigned long data) |
Set/clear output bit. More... | |
int(* | read )(struct bit_basher *basher, unsigned int bit_id) |
Read input bit. More... | |
void( * bit_basher_operations::open) (struct bit_basher *basher) |
Open bit-bashing interface (optional)
basher | Bit-bashing interface |
Definition at line 21 of file bitbash.h.
Referenced by open_bit().
void( * bit_basher_operations::close) (struct bit_basher *basher) |
Close bit-bashing interface (optional)
basher | Bit-bashing interface |
Definition at line 27 of file bitbash.h.
Referenced by close_bit().
void( * bit_basher_operations::write) (struct bit_basher *basher, unsigned int bit_id, unsigned long data) |
Set/clear output bit.
basher | Bit-bashing interface |
bit_id | Bit number |
data | Value to write |
data
will be 0 if a logic 0 should be written (i.e. the bit should be cleared), or -1UL if a logic 1 should be written (i.e. the bit should be set). This is done so that the method may simply binary-AND data
with the appropriate bit mask.
Definition at line 41 of file bitbash.h.
Referenced by init_i2c_bit_basher(), init_spi_bit_basher(), and write_bit().
int( * bit_basher_operations::read) (struct bit_basher *basher, unsigned int bit_id) |
Read input bit.
basher | Bit-bashing interface |
bit_id | Bit number |
zero | Input is a logic 0 |
non-zero | Input is a logic 1 |
Definition at line 51 of file bitbash.h.
Referenced by init_i2c_bit_basher(), init_spi_bit_basher(), and read_bit().