You've already forked dspico-usb-examples
mirror of
https://github.com/LNH-team/dspico-usb-examples.git
synced 2026-01-09 16:27:56 -08:00
20 lines
507 B
C++
20 lines
507 B
C++
#pragma once
|
|
#include "ipc/ThreadIpcService.h"
|
|
#include "dldiIpcCommand.h"
|
|
#include "ipcChannels.h"
|
|
|
|
class DldiIpcService : public ThreadIpcService
|
|
{
|
|
u32 _threadStack[128];
|
|
|
|
void SetupDldi(const dldi_ipc_cmd_t* cmd) const;
|
|
void ReadSectors(const dldi_ipc_cmd_t* cmd) const;
|
|
void WriteSectors(const dldi_ipc_cmd_t* cmd) const;
|
|
|
|
public:
|
|
DldiIpcService()
|
|
: ThreadIpcService(IPC_CHANNEL_DLDI, 6, _threadStack, sizeof(_threadStack)) { }
|
|
|
|
void HandleMessage(u32 data) override;
|
|
};
|