mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 15:25:13 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
31 lines
596 B
C
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
|