WISP ERT (Client)
1.0.0
The WISP Extended Runtime (WISP side)
|
Functions | |
wtp_status_t | wtp_tx_init (wtp_tx_ctrl_t *self, uint16_t window_size, uint16_t timeout, uint16_t read_size, uint16_t pkt_buf_size, uint16_t msg_buf_size, uint8_t n_fragments, uint8_t n_msgs) |
Initialize WTP transmit control type. More... | |
wtp_status_t | wtp_tx_fini (wtp_tx_ctrl_t *self) |
Finalize WTP transmit control type. More... | |
wtp_status_t | wtp_tx_begin_packet (wtp_tx_ctrl_t *self, wtp_pkt_t pkt_type) |
Begin construction of WTP packet. More... | |
wtp_status_t | wtp_tx_end_packet (wtp_tx_ctrl_t *self) |
End construction of WTP packet. More... | |
wtp_status_t | wtp_tx_add_msg (wtp_tx_ctrl_t *self, uint8_t *data, uint16_t size, wtp_tx_read_info_t **_read_info) |
Add a new message to transmit control. More... | |
wtp_status_t | wtp_tx_make_fragment (wtp_tx_ctrl_t *self, uint8_t avail_size, wtp_tx_fragment_t **_fragment) |
Make a new sending data fragment. More... | |
wtp_status_t | wtp_tx_handle_ack (wtp_tx_ctrl_t *self, uint16_t seq_num, uint8_t *_n_msgs) |
Handle WTP acknowledgement. More... | |
wtp_status_t | wtp_rx_init (wtp_rx_ctrl_t *self, uint16_t window_size, uint16_t msg_data_size, uint16_t fragments_size, uint8_t n_msg_info) |
Initialize WTP receive control type. More... | |
wtp_status_t | wtp_rx_fini (wtp_rx_ctrl_t *self) |
Finalize WTP receive control type. More... | |
wtp_status_t | wtp_rx_handle_packet (wtp_rx_ctrl_t *self, uint16_t seq_num, uint8_t *data, uint16_t size, uint16_t new_msg_size, uint8_t *_n_msgs) |
Handle incoming data packet. More... | |
wtp_status_t wtp_rx_fini | ( | wtp_rx_ctrl_t * | self | ) |
Finalize WTP receive control type.
wtp_status_t wtp_rx_handle_packet | ( | wtp_rx_ctrl_t * | self, |
uint16_t | seq_num, | ||
uint8_t * | data, | ||
uint16_t | size, | ||
uint16_t | new_msg_size, | ||
uint8_t * | _n_msgs | ||
) |
Handle incoming data packet.
wtp_status_t wtp_rx_init | ( | wtp_rx_ctrl_t * | self, |
uint16_t | window_size, | ||
uint16_t | msg_data_size, | ||
uint16_t | fragments_size, | ||
uint8_t | n_msg_info | ||
) |
Initialize WTP receive control type.
wtp_status_t wtp_tx_add_msg | ( | wtp_tx_ctrl_t * | self, |
uint8_t * | data, | ||
uint16_t | size, | ||
wtp_tx_read_info_t ** | _read_info | ||
) |
Add a new message to transmit control.
wtp_status_t wtp_tx_begin_packet | ( | wtp_tx_ctrl_t * | self, |
wtp_pkt_t | pkt_type | ||
) |
Begin construction of WTP packet.
wtp_status_t wtp_tx_end_packet | ( | wtp_tx_ctrl_t * | self | ) |
End construction of WTP packet.
wtp_status_t wtp_tx_fini | ( | wtp_tx_ctrl_t * | self | ) |
Finalize WTP transmit control type.
wtp_status_t wtp_tx_handle_ack | ( | wtp_tx_ctrl_t * | self, |
uint16_t | seq_num, | ||
uint8_t * | _n_msgs | ||
) |
Handle WTP acknowledgement.
wtp_status_t wtp_tx_init | ( | wtp_tx_ctrl_t * | self, |
uint16_t | window_size, | ||
uint16_t | timeout, | ||
uint16_t | read_size, | ||
uint16_t | pkt_buf_size, | ||
uint16_t | msg_buf_size, | ||
uint8_t | n_fragments, | ||
uint8_t | n_msgs | ||
) |
Initialize WTP transmit control type.
wtp_status_t wtp_tx_make_fragment | ( | wtp_tx_ctrl_t * | self, |
uint8_t | avail_size, | ||
wtp_tx_fragment_t ** | _fragment | ||
) |
Make a new sending data fragment.