-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: unify handling of length parameters (#177)
* usb: unify handling of length parameters The length parameters in USB packets are strict and the existing implementation does already hardcode the length within the serialize functions. Therefore the user should not provide these lengths during creation time. In order to make this more verbose use defaults values within the structs and reference these defaults values within the serialization functions. It's not possible to remove these fields completly as this fields are used within deserialization from the hardware itself. Signed-off-by: Tobias Kohlbau <[email protected]> * Remove length fields as they are obsolete. The lengths is only required during the serialization and therefore is already hardcoded. The only other convinience is the calculation of the descriptor size, but this is already wrong. extern structs are padded and therefore do not have the right sizes. Signed-off-by: Tobias Kohlbau <[email protected]> * cleanup some accidentially added changes Signed-off-by: Tobias Kohlbau <[email protected]> --------- Signed-off-by: Tobias Kohlbau <[email protected]>
- Loading branch information
1 parent
245401a
commit 096fda8
Showing
5 changed files
with
18 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters