Lines Matching refs:d

26 void p2G4_phy_resp_wait(uint d) {  in p2G4_phy_resp_wait()  argument
27 pb_phy_resp_wait(&cb_med_state, d); in p2G4_phy_resp_wait()
33 void p2G4_phy_resp_tx(uint d, p2G4_tx_done_t *tx_done_s) { in p2G4_phy_resp_tx() argument
34 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_tx()
35 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_TX_END, in p2G4_phy_resp_tx()
44 void p2G4_phy_resp_rx_addr_found(uint d, p2G4_rx_done_t* rx_done_s, uint8_t *packet) { in p2G4_phy_resp_rx_addr_found() argument
45 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_rx_addr_found()
46 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_RX_ADDRESSFOUND, in p2G4_phy_resp_rx_addr_found()
48 pb_send_payload(cb_med_state.ff_ptd[d], packet, rx_done_s->packet_size); in p2G4_phy_resp_rx_addr_found()
56 void p2G4_phy_resp_rxv2_addr_found(uint d, p2G4_rxv2_done_t* rx_done_s, uint8_t *packet) { in p2G4_phy_resp_rxv2_addr_found() argument
57 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_rxv2_addr_found()
58 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_RXV2_ADDRESSFOUND, in p2G4_phy_resp_rxv2_addr_found()
60 pb_send_payload(cb_med_state.ff_ptd[d], packet, rx_done_s->packet_size); in p2G4_phy_resp_rxv2_addr_found()
68 void p2G4_phy_resp_rx(uint d, p2G4_rx_done_t* rx_done_s) { in p2G4_phy_resp_rx() argument
69 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_rx()
70 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_RX_END, in p2G4_phy_resp_rx()
79 void p2G4_phy_resp_rxv2(uint d, p2G4_rxv2_done_t* rx_done_s) { in p2G4_phy_resp_rxv2() argument
80 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_rxv2()
81 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_RXV2_END, in p2G4_phy_resp_rxv2()
89 void p2G4_phy_resp_cca(uint d, p2G4_cca_done_t *sc_done_s) { in p2G4_phy_resp_cca() argument
90 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_cca()
91 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_CCA_END, in p2G4_phy_resp_cca()
99 void p2G4_phy_resp_RSSI(uint d, p2G4_rssi_done_t* RSSI_done_s) { in p2G4_phy_resp_RSSI() argument
100 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_RSSI()
101 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_RSSI_END, in p2G4_phy_resp_RSSI()
111 void p2G4_phy_resp_IMRSSI(uint d, p2G4_rssi_done_t* RSSI_done_s) { in p2G4_phy_resp_IMRSSI() argument
112 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_resp_IMRSSI()
113 pb_send_msg(cb_med_state.ff_ptd[d], P2G4_MSG_IMMRSSI_RRSI_DONE, in p2G4_phy_resp_IMRSSI()
118 pc_header_t p2G4_get_next_request(uint d){ in p2G4_get_next_request() argument
119 return pb_phy_get_next_request(&cb_med_state, d); in p2G4_get_next_request()
122 void p2G4_phy_get(uint d, void* b, size_t size) { in p2G4_phy_get() argument
123 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_get()
124 read(cb_med_state.ff_dtp[d], b, size); in p2G4_phy_get()
132 void p2G4_phy_get_abort_struct(uint d, p2G4_abort_t* abort_s) { in p2G4_phy_get_abort_struct() argument
134 read_size = read(cb_med_state.ff_dtp[d], abort_s, sizeof(p2G4_abort_t)); in p2G4_phy_get_abort_struct()
141 d, sizeof(p2G4_abort_t), read_size); in p2G4_phy_get_abort_struct()
150 void p2G4_phy_get_new_abort_request(uint d){ in p2G4_phy_get_new_abort_request() argument
151 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_get_new_abort_request()
153 write(cb_med_state.ff_ptd[d], &r_header, sizeof(r_header)); in p2G4_phy_get_new_abort_request()
159 int p2G4_phy_get_new_abort_receive(uint d, p2G4_abort_t* abort_s) { in p2G4_phy_get_new_abort_receive() argument
160 if (pb_phy_is_connected_to_device(&cb_med_state, d)) { in p2G4_phy_get_new_abort_receive()
162 read(cb_med_state.ff_dtp[d], &header, sizeof(header)); in p2G4_phy_get_new_abort_receive()
172 pb_phy_free_one_device(&cb_med_state ,d); in p2G4_phy_get_new_abort_receive()
174 p2G4_phy_get_abort_struct(d, abort_s); in p2G4_phy_get_new_abort_receive()