CSP Basic Types
File: csp/csp_types.h
Description: Basic types
-
typedef struct csp_iface_s csp_iface_t
[source] Forward declaration of CSP interface, see #csp_iface_s for details.
-
typedef csp_memptr_t (*csp_memcpy_fnc_t)(csp_memptr_t, csp_const_memptr_t, size_t)
[source] Platform specific memory copy function.
-
struct csp_packet_s
[source] CSP Packet.
This structure is constructed to fit with all interface and protocols to prevent the need to copy data (zero copy).
Note
In most cases a CSP packet cannot be reused in case of send failure, because the lower layers may add additional data causing increased length (e.g. CRC32), convert the CSP id to different endian (e.g. I2C), etc.
-
uint8_t header[8]
[source] Additional header bytes, to prepend packed data before transmission This must be minimum 6 bytes to accomodate CSP 2.0. But some implementations require much more scratch working area for encryption for example. Ultimately after csp_id_pack() this area will be filled with the CSP header
-
struct csp_packet_s *next
[source]
-
uint8_t header[8]
-
struct csp_packet_t
[source] CSP Packet.
This structure is constructed to fit with all interface and protocols to prevent the need to copy data (zero copy).
Note
In most cases a CSP packet cannot be reused in case of send failure, because the lower layers may add additional data causing increased length (e.g. CRC32), convert the CSP id to different endian (e.g. I2C), etc.
-
uint8_t header[8]
[source] Additional header bytes, to prepend packed data before transmission This must be minimum 6 bytes to accomodate CSP 2.0. But some implementations require much more scratch working area for encryption for example. Ultimately after csp_id_pack() this area will be filled with the CSP header
-
struct csp_packet_s *next
[source]
-
uint8_t header[8]
-
typedef struct csp_socket_s csp_socket_t
[source] Forward declaration of socket structure