start renaming the constants to Go-style.

This commit is contained in:
Sebastian Zagrodzki
2017-03-27 22:23:47 +02:00
parent 341fde410e
commit b70848cf73
7 changed files with 70 additions and 70 deletions

View File

@@ -30,7 +30,7 @@ type EndpointInfo struct {
}
func (e EndpointInfo) Number() int {
return int(e.Address) & ENDPOINT_NUM_MASK
return int(e.Address) & EndpointNumMask
}
func (e EndpointInfo) TransferType() TransferType {
@@ -38,7 +38,7 @@ func (e EndpointInfo) TransferType() TransferType {
}
func (e EndpointInfo) Direction() EndpointDirection {
return EndpointDirection(e.Address) & ENDPOINT_DIR_MASK
return EndpointDirection(e.Address) & EndpointDirectionMask
}
func (e EndpointInfo) String() string {