pub trait EndpointHandler: AsRef<[u32]> + AsMut<[u32]> {
Show 33 methods // Provided methods fn endpoint_state(&self) -> EndpointState { ... } fn set_endpoint_state(&mut self, s: EndpointState) { ... } fn mult(&self) -> u8 { ... } fn set_mult(&mut self, value: u8) { ... } fn max_primary_streams(&self) -> u8 { ... } fn set_max_primary_streams(&mut self, value: u8) { ... } fn linear_stream_array(&self) -> bool { ... } fn set_linear_stream_array(&mut self) { ... } fn clear_linear_stream_array(&mut self) { ... } fn interval(&self) -> u8 { ... } fn set_interval(&mut self, value: u8) { ... } fn max_endpoint_service_time_interval_payload_high(&self) -> u8 { ... } fn set_max_endpoint_service_time_interval_payload_high(&mut self, value: u8) { ... } fn error_count(&self) -> u8 { ... } fn set_error_count(&mut self, value: u8) { ... } fn endpoint_type(&self) -> EndpointType { ... } fn set_endpoint_type(&mut self, t: EndpointType) { ... } fn host_initiate_disable(&self) -> bool { ... } fn set_host_initiate_disable(&mut self) { ... } fn clear_host_initiate_disable(&mut self) { ... } fn max_burst_size(&self) -> u8 { ... } fn set_max_burst_size(&mut self, value: u8) { ... } fn max_packet_size(&self) -> u16 { ... } fn set_max_packet_size(&mut self, value: u16) { ... } fn dequeue_cycle_state(&self) -> bool { ... } fn set_dequeue_cycle_state(&mut self) { ... } fn clear_dequeue_cycle_state(&mut self) { ... } fn tr_dequeue_pointer(&self) -> u64 { ... } fn set_tr_dequeue_pointer(&mut self, a: u64) { ... } fn average_trb_length(&self) -> u16 { ... } fn set_average_trb_length(&mut self, value: u16) { ... } fn max_endpoint_service_time_interval_payload_low(&self) -> u16 { ... } fn set_max_endpoint_service_time_interval_payload_low(&mut self, value: u16) { ... }
}
Expand description

A trait to handle Endpoint Context.

Provided Methods§

source

fn endpoint_state(&self) -> EndpointState

Returns Endpoint State.

Panics

This method panics if the Endpoint State represents Reserved.

source

fn set_endpoint_state(&mut self, s: EndpointState)

Sets Endpoint State.

source

fn mult(&self) -> u8

Returns the value of the Mult field.

source

fn set_mult(&mut self, value: u8)

Sets the value of the Mult field.

source

fn max_primary_streams(&self) -> u8

Returns the value of the Max Primary Streams field.

source

fn set_max_primary_streams(&mut self, value: u8)

Sets the value of the Max Primary Streams field.

source

fn linear_stream_array(&self) -> bool

Returns the Linear Stream Array bit.

source

fn set_linear_stream_array(&mut self)

Sets the Linear Stream Array bit.

source

fn clear_linear_stream_array(&mut self)

Clears the Linear Stream Array bit.

source

fn interval(&self) -> u8

Returns the value of the Interval field.

source

fn set_interval(&mut self, value: u8)

Sets the value of the Interval field.

source

fn max_endpoint_service_time_interval_payload_high(&self) -> u8

Returns the value of the Max Endpoint Service Time Interval Payload High field.

source

fn set_max_endpoint_service_time_interval_payload_high(&mut self, value: u8)

Sets the value of the Max Endpoint Service Time Interval Payload High field.

source

fn error_count(&self) -> u8

Returns the value of the Error Count field.

source

fn set_error_count(&mut self, value: u8)

Sets the value of the Error Count field.

source

fn endpoint_type(&self) -> EndpointType

Returns Endpoint Type.

source

fn set_endpoint_type(&mut self, t: EndpointType)

Sets Endpoint Type.

source

fn host_initiate_disable(&self) -> bool

Returns the Host Initiate Disable bit.

source

fn set_host_initiate_disable(&mut self)

Sets the Host Initiate Disable bit.

source

fn clear_host_initiate_disable(&mut self)

Clears the Host Initiate Disable bit.

source

fn max_burst_size(&self) -> u8

Returns the value of the Max Burst Size field.

source

fn set_max_burst_size(&mut self, value: u8)

Sets the value of the Max Burst Size field.

source

fn max_packet_size(&self) -> u16

Returns the value of the Max Packet Size field.

source

fn set_max_packet_size(&mut self, value: u16)

Sets the value of the Max Packet Size field.

source

fn dequeue_cycle_state(&self) -> bool

Returns the Dequeue Cycle State bit.

source

fn set_dequeue_cycle_state(&mut self)

Sets the Dequeue Cycle State bit.

source

fn clear_dequeue_cycle_state(&mut self)

Clears the Dequeue Cycle State bit.

source

fn tr_dequeue_pointer(&self) -> u64

Returns the TR Dequeue Pointer.

source

fn set_tr_dequeue_pointer(&mut self, a: u64)

Sets the TR Dequeue Pointer.

Panics

This method panics if addr is not 64-byte aligned.

source

fn average_trb_length(&self) -> u16

Returns the value of the Average TRB Length field.

source

fn set_average_trb_length(&mut self, value: u16)

Sets the value of the Average TRB Length field.

source

fn max_endpoint_service_time_interval_payload_low(&self) -> u16

Returns the value of the Max Endpoint Service Time Interval Payload Low field.

source

fn set_max_endpoint_service_time_interval_payload_low(&mut self, value: u16)

Sets the value of the Max Endpoint Service Time Interval Payload Low field.

Implementors§

source§

impl<const N: usize> EndpointHandler for Endpoint<N>