Files
ss/include/rvl/AI/ai.h
T
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

31 lines
596 B
C

#ifndef RVL_SDK_AI_H
#define RVL_SDK_AI_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
// Forward declarations
typedef struct OSContext;
typedef void (*AIDMACallback)(void);
typedef enum {
AI_DSP_32KHZ,
AI_DSP_48KHZ,
} AIDSPSampleRate;
AIDMACallback AIRegisterDMACallback(AIDMACallback callback);
void AIInitDMA(void *buffer, u32 length);
void AIStartDMA(void);
u32 AIGetDMABytesLeft(void);
void AISetDSPSampleRate(u32 rate);
u32 AIGetDSPSampleRate(void);
void AIInit(void *stack);
void __AIDHandler(s16 intr, struct OSContext *ctx);
#ifdef __cplusplus
}
#endif
#endif