mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 21:22:05 +00:00
Cleanup comments and commits
This commit is contained in:
parent
d422ba4f38
commit
ca6caebd3f
@ -7,19 +7,18 @@
|
|||||||
|
|
||||||
// datasheet available at https://3dconnexion.com/cn/wp-content/uploads/2020/02/HW-Spec-3DX-700039_Rev001_serial.pdf
|
// datasheet available at https://3dconnexion.com/cn/wp-content/uploads/2020/02/HW-Spec-3DX-700039_Rev001_serial.pdf
|
||||||
|
|
||||||
// Datasheet UART settings specify:
|
/* Datasheet UART settings specify:
|
||||||
// - 38400 baud
|
* baud rate: 38400
|
||||||
// - 8 data bits
|
* data bits: 8
|
||||||
// - 1 stop bit
|
* parity: none
|
||||||
// - no parity
|
* stop bits: 1
|
||||||
// - 100/s data rate
|
* data rate: max 100/s
|
||||||
|
*/
|
||||||
|
|
||||||
#define SPACEMOUSE_BAUD_RATE 38400
|
#define SPACEMOUSE_BAUD_RATE 38400
|
||||||
|
|
||||||
#define SPACEMOUSE_AXIS_COUNT 6
|
#define SPACEMOUSE_AXIS_COUNT 6
|
||||||
#define SPACEMOUSE_INPUT_OFFSET (8192)
|
|
||||||
|
|
||||||
#define SPACEMOUSE_LENGTH_DATA (2 * SPACEMOUSE_AXIS_COUNT)
|
#define SPACEMOUSE_LENGTH_DATA (2 * SPACEMOUSE_AXIS_COUNT)
|
||||||
|
#define SPACEMOUSE_INPUT_OFFSET (8192)
|
||||||
|
|
||||||
enum spacemouse_commands {
|
enum spacemouse_commands {
|
||||||
SPACEMOUSE_CMD_REQUEST_DATA = 0xAC,
|
SPACEMOUSE_CMD_REQUEST_DATA = 0xAC,
|
||||||
@ -49,9 +48,8 @@ bool spacemouse_cmd_set_zero_position(void) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Starts automatic transmission of data, at 30ms invervals
|
* @brief Starts automatic transmission of data, at 30ms invervals
|
||||||
* Automatic data transmission happens at 30 ms intervals, but device can be polled at 100/s or 10ms intervals
|
* Automatic data transmission happens at 30 ms intervals, we don't need need the stream command,
|
||||||
* Since 10ms is what pointing device polling defaults to, we don't need need the stream command, but
|
* but it is here for completeness, in case somebody wants to implement it elsewhere.
|
||||||
* it is here for completeness, in case somebody wants to implement it elsewhere.
|
|
||||||
*
|
*
|
||||||
* @return true command ran successfully
|
* @return true command ran successfully
|
||||||
* @return false command failed
|
* @return false command failed
|
||||||
|
Loading…
Reference in New Issue
Block a user