Add CAM::SetReceiving, fix ports

This commit is contained in:
wheremyfoodat 2024-01-23 18:10:18 +02:00
parent ecf0416b64
commit 442ae3a210
2 changed files with 44 additions and 10 deletions

View file

@ -15,11 +15,13 @@ class CAMService {
using Event = std::optional<Handle>;
struct Port {
Event bufferErrorInterruptevent = std::nullopt;
Event bufferErrorInterruptEvent = std::nullopt;
Event receiveEvent = std::nullopt;
u16 transferBytes;
void reset() {
bufferErrorInterruptevent = std::nullopt;
bufferErrorInterruptEvent = std::nullopt;
receiveEvent = std::nullopt;
transferBytes = 256;
}
};
@ -41,6 +43,7 @@ class CAMService {
void getTransferBytes(u32 messagePointer);
void setContrast(u32 messagePointer);
void setFrameRate(u32 messagePointer);
void setReceiving(u32 messagePointer);
void setSize(u32 messagePointer);
void setTransferLines(u32 messagePointer);
void setTrimming(u32 messagePointer);