pub fn update_capr(&mut self) {
        // Ensure that the new CAPR is dword aligned
        self.rx_offset = (self.rx_offset + self.get_rx_len() + 4 + 3) & !3;

        // set CAPR slightly below actual offset because cryptic manual told us to
        let new_capr = self.rx_offset; // force copy to appease borrowck
        self.set_capr(new_capr - 0x10);

        if self.rx_offset >= BASE_BUF_SIZE {
            self.rx_offset %= BASE_BUF_SIZE;
        }
    }
// move CAPR to the next packet header
move CAPR to the next packet header
move CAPR to the next packet header
pub fn update_capr(&mut self) {
        // Ensure that the new CAPR is dword aligned
        self.rx_offset = (self.rx_offset + self.get_rx_len() + 4 + 3) & !3;
        // set CAPR slightly below actual offset because cryptic manual told us to
        let new_capr = self.rx_offset; // force copy to appease borrowck
        self.set_capr(new_capr - 0x10);
        if self.rx_offset >= BASE_BUF_SIZE {
            self.rx_offset %= BASE_BUF_SIZE;
        }
    }
pub fn update_capr ( & mut self ) { // Ensure that the new CAPR is dword aligned self . rx_offset = ( self . rx_offset + self . get_rx_len ( ) + 4 + 3 ) & ! 3 ; // set CAPR slightly below actual offset because cryptic manual told us to let new_capr = self . rx_offset ; // force copy to appease borrowck self . set_capr ( new_capr - 0x10 ) ; if self . rx_offset >= BASE_BUF_SIZE { self . rx_offset %= BASE_BUF_SIZE ; } }
move CAPR to the next packet header
move CAPR to the next packet header
&mut self
&mut self