Functions | Variables
python_ethernet_rmp::crc16 Namespace Reference

Functions

def buffer_crc_is_valid
def calculate_crc_16
def compute_buffer_crc
def generate_crc_table

Variables

int BITS_PER_BYTE = 8
int CRC_ADJUSTMENT = 0xA001
list crc_table = [0]
int CRC_TABLE_SIZE = 256
int HIGH_BYTE_MASK = 0xFF00
int INITIAL_CRC = 0
int LOW_BYTE_MASK = 0x00FF
int LS_BIT = 0x0001
int MOVE_BYTE_SHIFT = 8

Detailed Description

--------------------------------------------------------------------
COPYRIGHT 2013 SEGWAY Inc.

Software License Agreement:

The software supplied herewith by Segway Inc. (the "Company") for its 
RMP Robotic Platforms is intended and supplied to you, the Company's 
customer, for use solely and exclusively with Segway products. The 
software is owned by the Company and/or its supplier, and is protected 
under applicable copyright laws.  All rights are reserved. Any use in 
violation of the foregoing restrictions may subject the user to criminal 
sanctions under applicable laws, as well as to civil liability for the 
breach of the terms and conditions of this license. The Company may 
immediately terminate this Agreement upon your use of the software with 
any products that are not Segway products.

The software was written using Python programming language.  Your use 
of the software is therefore subject to the terms and conditions of the 
OSI- approved open source license viewable at http://www.python.org/.  
You are solely responsible for ensuring your compliance with the Python 
open source license.

You shall indemnify, defend and hold the Company harmless from any claims, 
demands,liabilities or expenses, including reasonable attorneys fees, incurred 
by the Company as a result of any claim or proceeding against the Company 
arising out of or based upon: 

(i) The combination, operation or use of the software by you with any hardware, 
    products, programs or data not supplied or approved in writing by the Company, 
    if such claim or proceeding would have been avoided but for such combination, 
    operation or use.
 
(ii) The modification of the software by or on behalf of you 

(iii) Your use of the software.

 THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
 WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
 TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
 IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
 CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
 
 \file   crc16.py

 \brief  This module contains a collection of functions for calculating
         a CRC-16.

 \Platform: Cross Platform
--------------------------------------------------------------------

Function Documentation

def python_ethernet_rmp.crc16.buffer_crc_is_valid (   byte_buffer,
  bytes_in_buffer 
)

Definition at line 122 of file crc16.py.

def python_ethernet_rmp.crc16.calculate_crc_16 (   old_crc,
  new_word 
)

Definition at line 90 of file crc16.py.

def python_ethernet_rmp.crc16.compute_buffer_crc (   byte_buffer,
  bytes_in_buffer 
)

Definition at line 100 of file crc16.py.

Definition at line 70 of file crc16.py.


Variable Documentation

Definition at line 63 of file crc16.py.

Definition at line 55 of file crc16.py.

Definition at line 65 of file crc16.py.

Definition at line 56 of file crc16.py.

Definition at line 59 of file crc16.py.

Definition at line 57 of file crc16.py.

Definition at line 60 of file crc16.py.

Definition at line 62 of file crc16.py.

Definition at line 61 of file crc16.py.



python_ethernet_rmp
Author(s): SEGWAY Inc.
autogenerated on Tue Mar 8 2016 00:53:38