36#ifndef __INCLUDE_AUDIOLITE_WORKER_H
37#define __INCLUDE_AUDIOLITE_WORKER_H
43#include <nuttx/config.h>
45#include <nuttx/queue.h>
46#include <mossfw/mossfw_lock.h>
47#include <audiolite/al_memalloc.h>
48#include <audiolite/alworker_comm.h>
54#define CHECK_HDR(hdr, g, c) \
55 (((hdr).grp == AL_COMM_MESSAGE_##g) && \
56 ((hdr).code == AL_COMM_MSGCODE##c))
79 mossfw_condition_t _cond;
80 struct dq_queue_s _mem_proc;
91 int get_qsize() {
return _max_qsz; };
101 mossfw_thread_t _tid;
104 alwkr_msghandler_t _hdlr;
108 static void *msg_receiver(
void *arg);
111 void mod_running(
bool running);
118 int bringup_worker(
const char *dspname,
bool is_spk =
false,
119 const char *rcvname =
"alworker",
120 int prio = CONFIG_AUDIOLITE_WSVR_DEFPRIO,
121 int stksz = CONFIG_AUDIOLITE_WSVR_DEFSTACK);
122 void terminate_worker();
123 void set_msghandler(alwkr_msghandler_t hdr,
void *arg);
Definition: al_memalloc.h:155
Definition: al_worker.h:99
Definition: al_worker.h:74
Definition: alworker_comm.h:173
Definition: alworker_comm.h:124
Definition: alworker_comm.h:137