pub trait Filter {
// Required methods
fn enable_filter(&self, filter: FilterParameters) -> Result<(), ErrorCode>;
fn disable_filter(&self, number: u32) -> Result<(), ErrorCode>;
fn filter_count(&self) -> usize;
}
Expand description
The Filter
trait is used to enable and disable a filter bank.
When the receiving process starts by calling the start_receiving_process
in the Receive
trait, there MUST be no filter enabled.
Required Methods§
Sourcefn enable_filter(&self, filter: FilterParameters) -> Result<(), ErrorCode>
fn enable_filter(&self, filter: FilterParameters) -> Result<(), ErrorCode>
Sourcefn filter_count(&self) -> usize
fn filter_count(&self) -> usize
Returns the number of filters the peripheral provides