#include <inttypes.h>
#include "net/network.h"
Go to the source code of this file.
Enumerations | |
enum | tsp_service_e { S_DGRAM = 0, S_REPEATED, S_ACKED, S_REQUEST, S_INVALID = 0xff } |
Transport layer service types. More... | |
Functions | |
void | tsp_check_timeout (void) |
Check transport layer timeouts. | |
void | tsp_process (void) |
Process waiting packets and schedule them for transmission. | |
int8_t | tsp_requ (net_buf_t *buf, net_addr_t *dest, enum tsp_service_e service) |
Send a packet using a transport layer sevice. | |
uint8_t | tsp_clear_to_send (void) |
Returns a nonzero value if a new packet could be passed to the transport layer. | |
void | tsp_set_segment_size (uint8_t size) |
Set size of segment. | |
uint8_t | tsp_get_segment_size (void) |
Get segment size. | |
void | tsp_set_group_size (uint8_t group, uint8_t size) |
Set size of a group. | |
uint8_t | tsp_get_group_size (uint8_t group) |
Get size of a group. |
Constants and definitions of the transport layer.
Definition in file transport.h.
|
Transport layer service types.
Definition at line 36 of file transport.h. Referenced by app_process(). |
|
Check transport layer timeouts. This function must be called at a fixed rate from the main loop.
Definition at line 451 of file transport.c. References NAF_GROUP, and tsp_con_fin(). |
|
Get size of a group.
Definition at line 597 of file transport.c. |
|
Get segment size.
Definition at line 575 of file transport.c. |
|
Process waiting packets and schedule them for transmission. This function should be called from your main loop.
Definition at line 398 of file transport.c. References net_clear_to_send(), net_requ(), and NPDU_SINGLE. |
|
Send a packet using a transport layer sevice. This function does return without waiting for the packet to be transmitted. Check the return value if the packet was scheduled for transmission.
Definition at line 492 of file transport.c. References AT_LOGIC, NPDU_SESSION, NPDU_SINGLE, NPDU_TRANSACTION, S_ACKED, S_DGRAM, S_REPEATED, and S_REQUEST. Referenced by app_process(). |
|
Set size of a group.
Definition at line 586 of file transport.c. |
|
Set size of segment.
Definition at line 565 of file transport.c. |