Motoron Motor Controller library for Raspberry Pi
Loading...
Searching...
No Matches
Functions
motoron_protocol.py File Reference

Go to the source code of this file.

Functions

def motoron_protocol.calculate_crc (buffer)
 

Detailed Description

This file defines the arbitrary constants needed to communicate with a Motoron.

We do not recommend importing this package directly because all of the constants defined in it are available through the motoron package.

Definition in file motoron_protocol.py.

Function Documentation

◆ calculate_crc()

def motoron_protocol.calculate_crc (   buffer)

This method calculates the 7-bit CRC needed for a Motoron command or response.

Most users will not need to use this, since most methods in this library automatically append a CRC byte or check received CRC bytes when appropriate.

Definition at line 172 of file motoron_protocol.py.