# W in k210_pac::sha256::num_reg - Rust
Writer for register num_reg
Keywords: rust, rustlang, rust-lang, W

# Type Definition k210_pac::sha256::num_reg::W

source · [−]

    pub type W = W<u32, NUM_REG>;

Expand description

Writer for register num_reg

## Implementations

source

### impl W

source

#### pub fn data_cnt(&mut self) -> DATA_CNT_W<'_>

Bits 0:15 - The total amount of data calculated by SHA256 is set by this register, and the smallest unit is 512bit

source

#### pub fn data_num(&mut self) -> DATA_NUM_W<'_>

Bits 16:31 - Currently calculated block number. 512bit=1block