Lines Matching full:rx
30 const struct bt_mesh_sar_rx *rx) in bt_mesh_sar_rx_encode() argument
32 net_buf_simple_add_u8(buf, (rx->seg_thresh & 0x1f) | in bt_mesh_sar_rx_encode()
33 (rx->ack_delay_inc << 5)); in bt_mesh_sar_rx_encode()
34 net_buf_simple_add_u8(buf, (rx->discard_timeout & 0xf) | in bt_mesh_sar_rx_encode()
35 ((rx->rx_seg_int_step & 0xf) << 4)); in bt_mesh_sar_rx_encode()
36 net_buf_simple_add_u8(buf, (rx->ack_retrans_count & 0x3)); in bt_mesh_sar_rx_encode()
58 struct bt_mesh_sar_rx *rx) in bt_mesh_sar_rx_decode() argument
63 rx->seg_thresh = (val & 0x1f); in bt_mesh_sar_rx_decode()
64 rx->ack_delay_inc = (val >> 5); in bt_mesh_sar_rx_decode()
66 rx->discard_timeout = (val & 0xf); in bt_mesh_sar_rx_decode()
67 rx->rx_seg_int_step = (val >> 4); in bt_mesh_sar_rx_decode()
69 rx->ack_retrans_count = (val & 0x3); in bt_mesh_sar_rx_decode()