14#ifndef MODULE_MODULE_SYSTEM_SERVICE_H
15#define MODULE_MODULE_SYSTEM_SERVICE_H
21#include "../iadk/adsp_error_code.h"
24 #define RESTRICT __restrict
30struct notification_handle;
106#define INTERFACE_VERSION_GNA INTERFACE_VERSION_GNA_V1
107#define INTERFACE_VERSION_INFERENCE_SERVICE INTERFACE_VERSION_INFERENCE_SERVICE_V2
108#define INTERFACE_VERSION_SDCA INTERFACE_VERSION_SDCA_V1
109#define INTERFACE_VERSION_ASYNC_MESSAGE_SERVICE INTERFACE_VERSION_ASYNC_MESSAGE_SERVICE_V1
110#define INTERFACE_VERSION_AM_SERVICE INTERFACE_VERSION_AM_SERVICE_V1
111#define INTERFACE_VERSION_KPB_SERVICE INTERFACE_VERSION_KPB_SERVICE_V2
112#define INTERFACE_VERSION_TIMESTAMPING_SERVICE INTERFACE_VERSION_TIMESTAMPING_SERVICE_V1
117struct system_service_iface;
121 struct log_handle const *log_handle, uint32_t param1,
122 uint32_t param2, uint32_t param3, uint32_t param4);
125 const void *
RESTRICT src,
size_t len);
128 const void *src,
size_t len);
130 void* (*vec_memset)(
void *dst,
int c,
size_t len);
133 uint8_t *notification_buffer,
134 uint32_t notification_buffer_size,
135 struct notification_handle **handle);
137 struct notification_handle *message,
138 uint32_t actual_payload_size);
143 struct system_service_iface **iface);
uint32_t AdspErrorCode
Defines error codes that are returned in the ADSP project.
Definition adsp_error_code.h:18
log_priority
Definition logger.h:12
notification_type
Definition system_service.h:70
@ NOTIFICATION_TYPE_MODULE_EVENT_NOTIFICATION
Definition system_service.h:78
@ NOTIFICATION_TYPE_AUDIO_CLASSIFIER_RESULTS
Definition system_service.h:75
@ NOTIFICATION_TYPE_VOICE_COMMAND_NOTIFICATION
Definition system_service.h:72
interface_id
Definition system_service.h:82
@ INTERFACE_ID_TIMESTAMPING_SERVICE
Definition system_service.h:89
@ INTERFACE_ID_ASYNC_MESSAGE_SERVICE
Definition system_service.h:86
@ INTERFACE_ID_KPB_SERVICE
Definition system_service.h:88
@ INTERFACE_ID_AM_SERVICE
Definition system_service.h:87
@ INTERFACE_ID_SDCA
Definition system_service.h:85
@ INTERFACE_ID_GNA
Definition system_service.h:83
@ INTERFACE_ID_INFERENCE_SERVICE
Definition system_service.h:84
notification_target
Definition system_service.h:62
@ NOTIFICATION_TARGET_DSP_TO_ISH
Definition system_service.h:64
@ NOTIFICATION_TARGET_DSP_TO_HOST
Definition system_service.h:63
#define RESTRICT
Definition system_service.h:26
interface_version
Definition system_service.h:93
@ INTERFACE_VERSION_KPB_SERVICE_V2
Definition system_service.h:101
@ INTERFACE_VERSION_SDCA_V1
Definition system_service.h:97
@ INTERFACE_VERSION_AM_SERVICE_V1
Definition system_service.h:99
@ INTERFACE_VERSION_ASYNC_MESSAGE_SERVICE_V1
Definition system_service.h:98
@ INTERFACE_VERSION_INFERENCE_SERVICE_V2
Definition system_service.h:96
@ INTERFACE_VERSION_INFERENCE_SERVICE_V1
Definition system_service.h:95
@ INTERFACE_VERSION_KPB_SERVICE_V1
Definition system_service.h:100
@ INTERFACE_VERSION_TIMESTAMPING_SERVICE_V1
Definition system_service.h:102
@ INTERFACE_VERSION_GNA_V1
Definition system_service.h:94
Definition system_service.h:48
uint32_t event_id
Definition system_service.h:50
uint32_t event_data[]
Definition system_service.h:54
uint32_t module_instance_id
Definition system_service.h:49
uint32_t event_data_size
Definition system_service.h:51
Definition system_service.h:33
uint32_t user_val_2
Definition system_service.h:38
uint8_t * payload
Definition system_service.h:44
uint32_t max_payload_size
Definition system_service.h:41
uint32_t type
Definition system_service.h:34
uint16_t user_val_1
Definition system_service.h:35
Definition system_service.h:119
void(* log_message)(enum log_priority log_priority, uint32_t log_entry, struct log_handle const *log_handle, uint32_t param1, uint32_t param2, uint32_t param3, uint32_t param4)
Definition system_service.h:120
AdspErrorCode(* safe_memmove)(void *dst, size_t maxlen, const void *src, size_t len)
Definition system_service.h:127
AdspErrorCode(* notification_send)(enum notification_target notification_target, struct notification_handle *message, uint32_t actual_payload_size)
Definition system_service.h:136
AdspErrorCode(* get_interface_versioned)(enum interface_id id, uint32_t version, struct system_service_iface **iface)
Definition system_service.h:142
AdspErrorCode(* notification_create)(struct notification_params *params, uint8_t *notification_buffer, uint32_t notification_buffer_size, struct notification_handle **handle)
Definition system_service.h:132
AdspErrorCode(* get_interface)(enum interface_id id, struct system_service_iface **iface)
Definition system_service.h:140
AdspErrorCode(* safe_memcpy)(void *RESTRICT dst, size_t maxlen, const void *RESTRICT src, size_t len)
Definition system_service.h:124