c++/drivers/lms/sicklms-1.0/SickLMSUtility.hh File Reference

Defines simple utility functions for working with the Sick LMS 2xx laser range finder units. More...

#include "SickConfig.hh"

Include dependency graph for SickLMSUtility.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SickToolbox

Defines

#define REVERSE_BYTE_ORDER_16(y)   ( ( ( y & 0x00FF ) << 8 ) | ( ( y & 0xFF00 ) >> 8 ) )
 Reverses the byte order of the given 16 bit unsigned integer.
#define REVERSE_BYTE_ORDER_32(y)   ( ( ( y & 0x000000FF ) << 24 ) | ( ( y & 0x0000FF00 ) << 8 ) | ( ( y & 0x00FF0000 ) >> 8 ) | ( ( y & 0xFF000000 ) >> 24 ) )
 Reverses the byte order of the given 32 bit unsigned integer.

Functions

uint16_t SickToolbox::host_to_sick_lms_byte_order (uint16_t value)
 Converts host byte order (little-endian) to Sick LMS byte order (little-endian).
uint32_t SickToolbox::host_to_sick_lms_byte_order (uint32_t value)
 Converts host byte order (little-endian) to Sick LMS byte order (little-endian).
uint16_t SickToolbox::sick_lms_to_host_byte_order (uint16_t value)
 Converts Sick LMS byte order (little-endian) to host byte order (little-endian).
uint32_t SickToolbox::sick_lms_to_host_byte_order (uint32_t value)
 Converts Sick LMS byte order (little-endian) to host byte order (little-endian).


Detailed Description

Defines simple utility functions for working with the Sick LMS 2xx laser range finder units.

Code by Jason C. Derenick and Thomas H. Miller. Contact derenick(at)lehigh(dot)edu

The Sick LIDAR Matlab/C++ Toolbox Copyright (c) 2008, Jason C. Derenick and Thomas H. Miller All rights reserved.

This software is released under a BSD Open-Source License. See http://sicktoolbox.sourceforge.net


Define Documentation

#define REVERSE_BYTE_ORDER_16 (  )     ( ( ( y & 0x00FF ) << 8 ) | ( ( y & 0xFF00 ) >> 8 ) )

Reverses the byte order of the given 16 bit unsigned integer.

#define REVERSE_BYTE_ORDER_32 (  )     ( ( ( y & 0x000000FF ) << 24 ) | ( ( y & 0x0000FF00 ) << 8 ) | ( ( y & 0x00FF0000 ) >> 8 ) | ( ( y & 0xFF000000 ) >> 24 ) )

Reverses the byte order of the given 32 bit unsigned integer.


Generated on Thu Mar 20 09:41:44 2008 for sicktoolbox-1.0 by  doxygen 1.5.1