atsamd21g/usb/host/
flenhigh.rs
1#[doc = "Register `FLENHIGH` reader"]
2pub type R = crate::R<FlenhighSpec>;
3#[doc = "Field `FLENHIGH` reader - Frame Length"]
4pub type FlenhighR = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:7 - Frame Length"]
7 #[inline(always)]
8 pub fn flenhigh(&self) -> FlenhighR {
9 FlenhighR::new(self.bits)
10 }
11}
12#[doc = "HOST Host Frame Length\n\nYou can [`read`](crate::Reg::read) this register and get [`flenhigh::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct FlenhighSpec;
14impl crate::RegisterSpec for FlenhighSpec {
15 type Ux = u8;
16}
17#[doc = "`read()` method returns [`flenhigh::R`](R) reader structure"]
18impl crate::Readable for FlenhighSpec {}
19#[doc = "`reset()` method sets FLENHIGH to value 0"]
20impl crate::Resettable for FlenhighSpec {
21 const RESET_VALUE: u8 = 0;
22}