Sternum Embedded SDK
system_port.h
Go to the documentation of this file.
1 #ifndef __STERNUM_SYSTEM_PORT_H__
2 #define __STERNUM_SYSTEM_PORT_H__
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdbool.h>
9 #include <stddef.h>
10 #include <stdint.h>
11 
13 
25 
32 
41 
46 
53 
58 
65 
70 
77 
82 
88 extern unsigned long int sternum_port_get_time(void);
89 
98 extern void sternum_log(int log_level, const char* format, ...);
99 
100 #ifdef __cplusplus
101 }
102 #endif
103 
104 #endif /* __STERNUM_SYSTEM_PORT_H__ */
Sternum SDK error codes.
void sternum_port_packets_buffer_mutex_lock(void)
Sternum's port to lock the packets buffer mutex.
void sternum_port_transmission_mutex_unlock(void)
Sternum's port to unlock the transmission mutex.
void sternum_port_transmission_state_mutex_lock(void)
Sternum's port to lock the transmission timestamp mutex.
void sternum_port_packets_buffer_mutex_unlock(void)
Sternum's port to unlock the packets buffer mutex.
void sternum_log(int log_level, const char *format,...)
Logging function for the SDK.
unsigned long int sternum_port_get_time(void)
Sternum's port to return the current time in milliseconds.
void sternum_port_transmission_mutex_lock(void)
Sternum's port to lock the transmission mutex.
void sternum_port_deinitialize_lock_objects(void)
Sternum's port to deinitialize synchronization objects.
int sternum_port_initialize_lock_objects(void)
Sternum's port to initialize synchronization objects.
void sternum_port_trace_buffer_mutex_unlock(void)
Sternum's port to unlock the trace buffer mutex.
void sternum_port_transmission_state_mutex_unlock(void)
Sternum's port to unlock the transmission timestamp mutex.
int sternum_port_trace_buffer_mutex_lock(void)
Sternum's port to lock the trace buffer mutex.