<p></p>
<blockquote>
<p>This is something to add in further PR's I think. Therefore 1 static callback function is actually fine for now I guess.</p>
</blockquote>
<p>I agree.</p>
<blockquote>
<p>Wouldn't it make sense for the callback to at least have a void pointer argument?</p>
</blockquote>
<blockquote>
<p>What would you pass as argument from the USB HID layer ?</p>
</blockquote>
<blockquote>
<p>It wouldn't be from the USB HID layer, it would be from the upper layer,</p>
</blockquote>
<p>Generally,  the option of an argument seems like a good idea, although I don't have a specific case in mind either. <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/Ollrogge/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ollrogge">@Ollrogge</a> what is the typical use of HID IO? Can't you think of a situation where an upper layer needs to pass information to the callback? In worst case, check the API of an other implementation (for example in <a href="https://www.keil.com/pack/doc/mw/USB/html/_u_s_b__device.html" rel="nofollow">KEIL</a>)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16689#issuecomment-891718089">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYF2MY7XYTE4VYSU6HDT266AZANCNFSM5BFBSL4Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYEDVTNK2B5SUFA7TZTT266AZA5CNFSM5BFBSL42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGUTITSI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16689#issuecomment-891718089",
"url": "https://github.com/RIOT-OS/RIOT/pull/16689#issuecomment-891718089",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>