@@ -88,6 +88,7 @@ impl RfSwitch {
8888 /// // 2. the pins have been setup
8989 /// let rfs: RfSwitch = unsafe { RfSwitch::steal() };
9090 /// ```
91+ #[ inline]
9192 pub unsafe fn steal ( ) -> Self {
9293 RfSwitch {
9394 fe_ctrl1 : Output :: steal ( ) ,
@@ -113,6 +114,7 @@ impl RfSwitch {
113114 /// cortex_m::interrupt::free(|cs| RfSwitch::new(gpioc.c3, gpioc.c4, gpioc.c5, cs));
114115 /// rfs.set_rx()
115116 /// ```
117+ #[ inline]
116118 pub fn set_rx ( & mut self ) {
117119 self . fe_ctrl1 . set_level ( PinState :: High ) ;
118120 self . fe_ctrl2 . set_level ( PinState :: Low ) ;
@@ -136,6 +138,7 @@ impl RfSwitch {
136138 /// cortex_m::interrupt::free(|cs| RfSwitch::new(gpioc.c3, gpioc.c4, gpioc.c5, cs));
137139 /// rfs.set_tx_lp()
138140 /// ```
141+ #[ inline]
139142 pub fn set_tx_lp ( & mut self ) {
140143 self . fe_ctrl1 . set_level ( PinState :: High ) ;
141144 self . fe_ctrl2 . set_level ( PinState :: High ) ;
@@ -159,6 +162,7 @@ impl RfSwitch {
159162 /// cortex_m::interrupt::free(|cs| RfSwitch::new(gpioc.c3, gpioc.c4, gpioc.c5, cs));
160163 /// rfs.set_tx_hp()
161164 /// ```
165+ #[ inline]
162166 pub fn set_tx_hp ( & mut self ) {
163167 self . fe_ctrl2 . set_level ( PinState :: High ) ;
164168 self . fe_ctrl1 . set_level ( PinState :: Low ) ;
0 commit comments