pub struct Parameters {
pub baud: BaudRate,
pub channel: Channel,
pub power: TransmissionPower,
pub speed: Speed,
}Expand description
所有 hc14 参数
All hc14 parameters
Fields§
§baud: BaudRate波特率
channel: Channel通信信道
power: TransmissionPower传输功率
speed: Speed工作模式
Implementations§
Source§impl Parameters
impl Parameters
Sourcepub fn set_baud(&mut self, rate: BaudRate) -> Result<(), Error>
pub fn set_baud(&mut self, rate: BaudRate) -> Result<(), Error>
设置参数的波特率,官方没有详细说明所有模式的波特率参数
Set the baud rate of the parameter, the official baud rate parameter for all modes is not specified in detail
Sourcepub fn get_air_baud(&self) -> AirBaudRate
pub fn get_air_baud(&self) -> AirBaudRate
尝试获取空中波特率(取决于串行波特率和数据表中的信息),官方没有详细说明 Attempts to obtain the air baud rate (depending on the serial baud rate and information in the datasheet), which is not officially detailed
Trait Implementations§
Source§impl Debug for Parameters
impl Debug for Parameters
Source§impl Default for Parameters
impl Default for Parameters
Source§fn default() -> Parameters
fn default() -> Parameters
Returns the “default value” for a type. Read more
Source§impl PartialEq for Parameters
impl PartialEq for Parameters
impl Eq for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more