[][src]Struct bchlib_sys::bch_control

#[repr(C)]
pub struct bch_control { pub m: c_uint, pub n: c_uint, pub t: c_uint, pub ecc_bits: c_uint, pub ecc_bytes: c_uint, pub a_pow_tab: *mut u16, pub a_log_tab: *mut u16, pub mod8_tab: *mut u32, pub ecc_buf: *mut u32, pub ecc_buf2: *mut u32, pub xi_tab: *mut c_uint, pub syn: *mut c_uint, pub cache: *mut c_int, pub elp: *mut gf_poly, pub poly_2t: [*mut gf_poly; 4], pub databuf: *mut u8, }

struct bch_control - BCH control structure @m: Galois field order @n: maximum codeword size in bits (= 2^m-1) @t: error correction capability in bits @ecc_bits: ecc exact size in bits, i.e. generator polynomial degree (<=mt) @ecc_bytes: ecc max size (mt bits) in bytes @a_pow_tab: Galois field GF(2^m) exponentiation lookup table @a_log_tab: Galois field GF(2^m) log lookup table @mod8_tab: remainder generator polynomial lookup tables @ecc_buf: ecc parity words buffer @ecc_buf2: ecc parity words buffer @xi_tab: GF(2^m) base for solving degree 2 polynomial roots @syn: syndrome buffer @cache: log-based polynomial representation buffer @elp: error locator polynomial @poly_2t: temporary polynomials of degree 2t

Fields

m: c_uintn: c_uintt: c_uintecc_bits: c_uintecc_bytes: c_uinta_pow_tab: *mut u16a_log_tab: *mut u16mod8_tab: *mut u32ecc_buf: *mut u32ecc_buf2: *mut u32xi_tab: *mut c_uintsyn: *mut c_uintcache: *mut c_intelp: *mut gf_polypoly_2t: [*mut gf_poly; 4]databuf: *mut u8

Trait Implementations

impl Copy for bch_control[src]

impl Clone for bch_control[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for bch_control[src]

Auto Trait Implementations

impl !Send for bch_control

impl !Sync for bch_control

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]