Lines Matching refs:cmd

751     async fn core_reset(&mut self, cmd: nci::CoreResetCommand) -> Result<()> {  in core_reset()
753 info!(" ResetType: {:?}", cmd.get_reset_type()); in core_reset()
755 match cmd.get_reset_type() { in core_reset()
773 config_status: match cmd.get_reset_type() { in core_reset()
829 async fn core_set_config(&mut self, cmd: nci::CoreSetConfigCommand) -> Result<()> { in core_set_config()
833 for parameter in cmd.get_parameters().iter() { in core_set_config()
882 async fn core_get_config(&mut self, cmd: nci::CoreGetConfigCommand) -> Result<()> { in core_get_config()
887 for id in cmd.get_parameters() { in core_get_config()
920 async fn core_conn_create(&mut self, cmd: nci::CoreConnCreateCommand) -> Result<()> { in core_conn_create()
933 let logical_connection = match cmd.get_destination_type() { in core_conn_create()
942 for parameter in cmd.get_parameters() { in core_conn_create()
1002 async fn core_conn_close(&mut self, cmd: nci::CoreConnCloseCommand) -> Result<()> { in core_conn_close()
1005 let conn_id = match cmd.get_conn_id() { in core_conn_close()
1039 cmd: nci::CoreSetPowerSubStateCommand, in core_set_power_sub_state()
1042 info!(" State: {:?}", cmd.get_power_state()); in core_set_power_sub_state()
1050 async fn rf_discover_map(&mut self, cmd: nci::RfDiscoverMapCommand) -> Result<()> { in rf_discover_map()
1053 self.state.discover_map.clone_from(cmd.get_mapping_configurations()); in rf_discover_map()
1087 async fn rf_discover(&mut self, cmd: nci::RfDiscoverCommand) -> Result<()> { in rf_discover()
1089 for config in cmd.get_configurations() { in rf_discover()
1102 self.state.discover_configuration.clone_from(cmd.get_configurations()); in rf_discover()
1110 async fn rf_discover_select(&mut self, cmd: nci::RfDiscoverSelectCommand) -> Result<()> { in rf_discover_select()
1112 info!(" DiscoveryID: {:?}", cmd.get_rf_discovery_id()); in rf_discover_select()
1113 info!(" Protocol: {:?}", cmd.get_rf_protocol()); in rf_discover_select()
1114 info!(" Interface: {:?}", cmd.get_rf_interface()); in rf_discover_select()
1125 let rf_discovery_id = match cmd.get_rf_discovery_id() { in rf_discover_select()
1149 if cmd.get_rf_protocol() != self.state.rf_poll_responses[rf_discovery_id].rf_protocol.into() in rf_discover_select()
1165 cmd.get_rf_protocol(), in rf_discover_select()
1166 cmd.get_rf_interface(), in rf_discover_select()
1173 async fn rf_deactivate(&mut self, cmd: nci::RfDeactivateCommand) -> Result<()> { in rf_deactivate()
1175 info!(" Type: {:?}", cmd.get_deactivation_type()); in rf_deactivate()
1179 let (status, mut next_state) = match (self.state.rf_state, cmd.get_deactivation_type()) { in rf_deactivate()
1216 info!(" Type: {:?}", cmd.get_deactivation_type()); in rf_deactivate()
1219 deactivation_type: cmd.get_deactivation_type(), in rf_deactivate()
1236 type_: cmd.get_deactivation_type().into(), in rf_deactivate()
1271 async fn nfcee_mode_set(&mut self, cmd: nci::NfceeModeSetCommand) -> Result<()> { in nfcee_mode_set()
1273 info!(" NFCEE ID: {:?}", cmd.get_nfcee_id()); in nfcee_mode_set()
1274 info!(" NFCEE Mode: {:?}", cmd.get_nfcee_mode()); in nfcee_mode_set()
1276 if cmd.get_nfcee_id() != nci::NfceeId::hci_nfcee(0x86) { in nfcee_mode_set()
1282 self.state.nfcee_state = match cmd.get_nfcee_mode() { in nfcee_mode_set()
1348 cmd: nci::AndroidPassiveObserveModeCommand, in android_passive_observe_mode()
1351 info!(" Mode: {:?}", cmd.get_passive_observe_mode()); in android_passive_observe_mode()
1353 self.state.passive_observe_mode = cmd.get_passive_observe_mode(); in android_passive_observe_mode()
1385 CoreResetCommand(cmd) => self.core_reset(cmd).await, in receive_command()
1386 CoreInitCommand(cmd) => self.core_init(cmd).await, in receive_command()
1387 CoreSetConfigCommand(cmd) => self.core_set_config(cmd).await, in receive_command()
1388 CoreGetConfigCommand(cmd) => self.core_get_config(cmd).await, in receive_command()
1389 CoreConnCreateCommand(cmd) => self.core_conn_create(cmd).await, in receive_command()
1390 CoreConnCloseCommand(cmd) => self.core_conn_close(cmd).await, in receive_command()
1391 CoreSetPowerSubStateCommand(cmd) => self.core_set_power_sub_state(cmd).await, in receive_command()
1395 RfDiscoverMapCommand(cmd) => self.rf_discover_map(cmd).await, in receive_command()
1396 RfSetListenModeRoutingCommand(cmd) => self.rf_set_listen_mode_routing(cmd).await, in receive_command()
1397 RfGetListenModeRoutingCommand(cmd) => self.rf_get_listen_mode_routing(cmd).await, in receive_command()
1398 RfDiscoverCommand(cmd) => self.rf_discover(cmd).await, in receive_command()
1399 RfDiscoverSelectCommand(cmd) => self.rf_discover_select(cmd).await, in receive_command()
1400 RfDeactivateCommand(cmd) => self.rf_deactivate(cmd).await, in receive_command()
1404 NfceeDiscoverCommand(cmd) => self.nfcee_discover(cmd).await, in receive_command()
1405 NfceeModeSetCommand(cmd) => self.nfcee_mode_set(cmd).await, in receive_command()
1410 AndroidGetCapsCommand(cmd) => self.android_get_caps(cmd).await, in receive_command()
1411 AndroidPassiveObserveModeCommand(cmd) => { in receive_command()
1412 self.android_passive_observe_mode(cmd).await in receive_command()
1414 AndroidQueryPassiveObserveModeCommand(cmd) => { in receive_command()
1415 self.android_query_passive_observe_mode(cmd).await in receive_command()
1588 async fn poll_command(&mut self, cmd: rf::PollCommand) -> Result<()> { in poll_command()
1594 let technology = cmd.get_technology(); in poll_command()
1638 receiver: cmd.get_sender(), in poll_command()
1655 async fn nfca_poll_response(&mut self, cmd: rf::NfcAPollResponse) -> Result<()> { in nfca_poll_response()
1662 let int_protocol = cmd.get_int_protocol(); in nfca_poll_response()
1670 let sens_res = match cmd.get_nfcid1().len() { in nfca_poll_response()
1675 } | cmd.get_bit_frame_sdd() as u16; in nfca_poll_response()
1680 id: cmd.get_sender(), in nfca_poll_response()
1686 nfcid1: cmd.get_nfcid1().clone(), in nfca_poll_response()
1697 async fn t4at_select_command(&mut self, cmd: rf::T4ATSelectCommand) -> Result<()> { in t4at_select_command()
1702 RfState::ListenSleep { id } if id == cmd.get_sender() => (), in t4at_select_command()
1713 id: cmd.get_sender(), in t4at_select_command()
1732 receiver: cmd.get_sender(), in t4at_select_command()
1743 info!(" RATS: {}", cmd.get_param()); in t4at_select_command()
1758 param: cmd.get_param(), in t4at_select_command()
1768 async fn t4at_select_response(&mut self, cmd: rf::T4ATSelectResponse) -> Result<()> { in t4at_select_response()
1782 if cmd.get_sender() != id { in t4at_select_response()
1796 self.state.rf_activation_parameters = vec![cmd.get_rats_response().len() as u8]; in t4at_select_response()
1797 self.state.rf_activation_parameters.extend_from_slice(cmd.get_rats_response()); in t4at_select_response()
1804 info!(" RATS: {:?}", cmd.get_rats_response()); in t4at_select_response()
1823 rats_response: cmd.get_rats_response().clone(), in t4at_select_response()
1873 async fn deactivate_notification(&mut self, cmd: rf::DeactivateNotification) -> Result<()> { in deactivate_notification()
1878 let mut next_state = match (self.state.rf_state, cmd.get_type_()) { in deactivate_notification()
1879 (RfState::PollActive { id, .. }, IdleMode) if id == cmd.get_sender() => RfState::Idle, in deactivate_notification()
1880 (RfState::PollActive { id, .. }, SleepMode | SleepAfMode) if id == cmd.get_sender() => { in deactivate_notification()
1883 (RfState::PollActive { id, .. }, Discovery) if id == cmd.get_sender() => { in deactivate_notification()
1886 (RfState::ListenSleep { id, .. }, IdleMode) if id == cmd.get_sender() => RfState::Idle, in deactivate_notification()
1887 (RfState::ListenSleep { id, .. }, Discovery) if id == cmd.get_sender() => { in deactivate_notification()
1890 (RfState::ListenActive { id, .. }, IdleMode) if id == cmd.get_sender() => RfState::Idle, in deactivate_notification()
1892 if id == cmd.get_sender() => in deactivate_notification()
1896 (RfState::ListenActive { id, .. }, Discovery) if id == cmd.get_sender() => { in deactivate_notification()
1909 deactivation_type: cmd.get_type_().into(), in deactivate_notification()
1910 deactivation_reason: cmd.get_reason().into(), in deactivate_notification()
1922 PollCommand(cmd) => self.poll_command(cmd).await, in receive_rf()
1923 NfcAPollResponse(cmd) => self.nfca_poll_response(cmd).await, in receive_rf()
1930 T4ATSelectCommand(cmd) => self.t4at_select_command(cmd).await, in receive_rf()
1931 T4ATSelectResponse(cmd) => self.t4at_select_response(cmd).await, in receive_rf()
1933 DeactivateNotification(cmd) => self.deactivate_notification(cmd).await, in receive_rf()
1934 Data(cmd) => self.data_packet(cmd).await, in receive_rf()