SHIELD-Malb41k1/SPI.md

14 lines
585 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#Передача команды и параметров по шине SPI.
При передаче пакета
- Конец пакета "0" - поэтому он не используется в передаче, а означает конец передачи.
1) Byte команды.
2) Byte[] массив параметров.
3) Byte контрольной суммы.
Например:
* Команда: 0x06
* Данные: 0x0A 0x03 0x02
* Контрольная сумма: 0XC2
Итоговый пакет, который передается:
* 0x06 0x0A 0x03 0x02 0xC2