Skip to content

Commit

Permalink
#9 adjust documentation in register.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinAbdelhamid committed Jun 5, 2024
1 parent ccfbb04 commit c6f9a42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/registers.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use modular_bitfield_msb::prelude::*;

/// Fourth byte of FIFO Control register
#[bitfield]
#[derive(Default)]
#[repr(u8)]
/// Fourth byte of FIFO Control register
pub struct FifoControlReg3 {
pub plsize: B3,
fsize: B5,
Expand All @@ -23,10 +23,10 @@ impl FifoControlReg3 {
}
}

/// Third byte of FIFO Control register
#[bitfield]
#[derive(Default)]
#[repr(u8)]
/// Third byte of FIFO Control register
pub struct FifoControlReg2 {
#[skip]
__: B1,
Expand All @@ -36,10 +36,10 @@ pub struct FifoControlReg2 {
pub txpri: B5,
}

/// Second byte of FIFO Control register
#[bitfield]
#[derive(Default)]
#[repr(u8)]
/// Second byte of FIFO Control register
pub struct FifoControlReg1 {
#[skip]
__: B5,
Expand All @@ -51,10 +51,10 @@ pub struct FifoControlReg1 {
pub uinc: bool,
}

/// First byte of FIFO Control register
#[bitfield]
#[derive(Default)]
#[repr(u8)]
/// First byte of FIFO Control register
pub struct FifoControlReg0 {
/// TX/RX FIFO Selection bit
pub txen: bool,
Expand All @@ -74,21 +74,21 @@ pub struct FifoControlReg0 {
pub tfnrfnie: bool,
}

/// Second byte of FIFO Status register
#[bitfield]
#[derive(Default)]
#[repr(u8)]
/// Second byte of FIFO Status register
pub struct FifoStatusReg1 {
#[skip]
__: B3,
/// FIFO Message Index bits
pub fifoci: B5,
}

/// First byte of FIFO Status register
#[bitfield]
#[derive(Default)]
#[repr(u8)]
/// First byte of FIFO Status register
pub struct FifoStatusReg0 {
/// Message Aborted Status bit
pub txabt: bool,
Expand Down

0 comments on commit c6f9a42

Please sign in to comment.