From 6f592340e096e17f61bff1f62f8b86b680ee4c54 Mon Sep 17 00:00:00 2001 From: sebgab Date: Wed, 6 Mar 2024 12:11:52 +0000 Subject: [PATCH] Add Commands --- Commands.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Commands.md diff --git a/Commands.md b/Commands.md new file mode 100644 index 0000000..977aec5 --- /dev/null +++ b/Commands.md @@ -0,0 +1,25 @@ +# Commands +This page contains the valid commands that can be sent and how they are formatted. + +Given we use I2C for comms using hex as the commands are reasonable. + +## Categories +The commands are divided into the following categories, with their own upper byte. +The "#" denotes that this is dependent upon the command. + +| hex | category | +| :- | :- | +| 0x1# | Read data | +| 0x2# | Write data | + +## Complete command table +| command | description | note | +| :-- | :-- | :-- | +| 0x11 | Read config | | +| 0x12 | Read internal voltage | | +| 0x13 | Read external voltage | | +| 0x14 | Read temperature | | +| 0x15 | Read current fan speed | | +| 0x16 | Read bulk fan speed | | +| 0x21 | Write config | | +| 0x22 | Clear stored fan speed data | | \ No newline at end of file