-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-91-busy-loop
- Loading branch information
Showing
21 changed files
with
103 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { VersionBaseType } from '../dto'; | ||
import { RawBuffer } from '../RawBuffer'; | ||
|
||
export class ControllerItem { | ||
deviceName: string; | ||
|
||
deviceId: number; | ||
|
||
productId: number; | ||
|
||
compositeId: number; | ||
|
||
hardwareVersion: VersionBaseType; | ||
|
||
constructor(data: RawBuffer) { | ||
this.deviceName = data.readString256(); | ||
this.deviceId = data.readInt32(); | ||
this.productId = data.readInt32(); | ||
this.compositeId = data.readInt32(); | ||
this.hardwareVersion = new VersionBaseType(data); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { RawBuffer } from '../RawBuffer'; | ||
|
||
export class VersionBaseType { | ||
major: number; | ||
|
||
minor: number; | ||
|
||
revision: number; | ||
|
||
build: number; | ||
|
||
constructor(data: RawBuffer) { | ||
this.major = data.readInt16(); | ||
this.minor = data.readInt16(); | ||
this.revision = data.readInt16(); | ||
this.build = data.readInt16(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { RawBuffer } from '../RawBuffer'; | ||
import { RecvListTemplate } from './RecvListTemplate'; | ||
import { ControllerItem } from '../datastructures/ControllerItem'; | ||
|
||
export class RecvControllersList extends RecvListTemplate { | ||
controllers: ControllerItem[] = []; | ||
|
||
constructor(data: RawBuffer) { | ||
super(data); | ||
|
||
this.controllers = []; | ||
for (let i = 0; i < this.arraySize; i++) { | ||
this.controllers.push(new ControllerItem(data)); | ||
} | ||
} | ||
} |
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