htclow: add Channel wrapper class

This commit is contained in:
Michael Scire
2021-02-10 22:52:12 -08:00
committed by SciresM
parent dec06ff649
commit 9fbbb9fadb
13 changed files with 388 additions and 4 deletions

View File

@@ -41,6 +41,11 @@ namespace ams::htclow::mux {
m_version = version;
}
void SendBuffer::SetFlowControlEnabled(bool en) {
/* Set flow control enabled. */
m_flow_control_enabled = en;
}
void SendBuffer::MakeDataPacketHeader(PacketHeader *header, int body_size, s16 version, u64 share, u32 offset) const {
/* Set all packet fields. */
header->signature = HtcGen2Signature;