Sternum Embedded SDK
|
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "sternum_sdk/api/sternum_error_codes.h"
Go to the source code of this file.
Functions | |
int | sternum_port_initialize_lock_objects (void) |
Sternum's port to initialize synchronization objects. More... | |
void | sternum_port_deinitialize_lock_objects (void) |
Sternum's port to deinitialize synchronization objects. More... | |
int | sternum_port_trace_buffer_mutex_lock (void) |
Sternum's port to lock the trace buffer mutex. More... | |
void | sternum_port_trace_buffer_mutex_unlock (void) |
Sternum's port to unlock the trace buffer mutex. More... | |
void | sternum_port_packets_buffer_mutex_lock (void) |
Sternum's port to lock the packets buffer mutex. More... | |
void | sternum_port_packets_buffer_mutex_unlock (void) |
Sternum's port to unlock the packets buffer mutex. More... | |
void | sternum_port_transmission_mutex_lock (void) |
Sternum's port to lock the transmission mutex. More... | |
void | sternum_port_transmission_mutex_unlock (void) |
Sternum's port to unlock the transmission mutex. More... | |
void | sternum_port_transmission_state_mutex_lock (void) |
Sternum's port to lock the transmission timestamp mutex. More... | |
void | sternum_port_transmission_state_mutex_unlock (void) |
Sternum's port to unlock the transmission timestamp mutex. More... | |
unsigned long int | sternum_port_get_time (void) |
Sternum's port to return the current time in milliseconds. More... | |
void | sternum_log (int log_level, const char *format,...) |
Logging function for the SDK. More... | |
void sternum_log | ( | int | log_level, |
const char * | format, | ||
... | |||
) |
Logging function for the SDK.
Implement this function if you wish to use your system's logger. Default implementing will use printf.
log_level | log level |
format | log format |
... | log arguments |
void sternum_port_deinitialize_lock_objects | ( | void | ) |
Sternum's port to deinitialize synchronization objects.
This function should release all acquired resources and allocated memory.
unsigned long int sternum_port_get_time | ( | void | ) |
Sternum's port to return the current time in milliseconds.
int sternum_port_initialize_lock_objects | ( | void | ) |
Sternum's port to initialize synchronization objects.
This function should create and initialize mutexes.
void sternum_port_packets_buffer_mutex_lock | ( | void | ) |
Sternum's port to lock the packets buffer mutex.
void sternum_port_packets_buffer_mutex_unlock | ( | void | ) |
Sternum's port to unlock the packets buffer mutex.
int sternum_port_trace_buffer_mutex_lock | ( | void | ) |
Sternum's port to lock the trace buffer mutex.
void sternum_port_trace_buffer_mutex_unlock | ( | void | ) |
Sternum's port to unlock the trace buffer mutex.
void sternum_port_transmission_mutex_lock | ( | void | ) |
Sternum's port to lock the transmission 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_transmission_state_mutex_unlock | ( | void | ) |
Sternum's port to unlock the transmission timestamp mutex.