Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Transport Class Reference
A class to implement a basic transport layer that is based very loosely on UDP/UDP-lite. More...
#include <comms.h>
Public Member Functions | |
| Transport (uint32_t, uint32_t, uint32_t) | |
| Transport constructor. | |
| void | get_packet (uint8_t **, uint16_t *) |
| Provides a pointer to a buffer containing a formatted packet and the total length of said packet. | |
| void | load_data (uint16_t *, uint16_t) |
| Loads the transport packet with an array of 16bit samples. | |
| void | set_dst_port (uint16_t) |
| Set the destination port. | |
Detailed Description
A class to implement a basic transport layer that is based very loosely on UDP/UDP-lite.
Definition at line 41 of file comms.h.
Constructor & Destructor Documentation
| Transport | ( | uint32_t | src_addr, |
| uint32_t | dst_addr, | ||
| uint32_t | ID | ||
| ) |
Member Function Documentation
| void get_packet | ( | uint8_t ** | buffer, |
| uint16_t * | length | ||
| ) |
| void load_data | ( | uint16_t * | buffer, |
| uint16_t | length | ||
| ) |
Generated on Sat Jul 16 2022 02:18:32 by
1.7.2