view main/packages/common/can/can_nodes.h @ 277:773f6e8a5842 main

PixyCam commands and node definitions.
author Bob Cook <bob@bobcookdev.com>
date Mon, 30 May 2016 19:03:03 -0700
parents ec26a0ac8e1b
children
line wrap: on
line source

// ----------------------------------------------------------------------------------------
//
//  common/can/can_nodes.h
//    
//  Bob Cook Development, Robotics Library
//  http://www.bobcookdev.com/rl/
// 
//  Identifiers for Controller Area Network nodes across multiple projects.
//
//  Copyright (c) 2011-2016 Bob Cook
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//
// ----------------------------------------------------------------------------------------

#if !defined(BCDRL_COMMON_CAN_CAN_NODES_H)
#define BCDRL_COMMON_CAN_CAN_NODES_H

#include <stdint.h>

// ----------------------------------------------------------------------------------------
//  general

const uint8_t can_node_broadcast = 0x0000;

// ----------------------------------------------------------------------------------------
//  odr, odr-*

const uint8_t can_node_odr_manager     = 0x0001;
const uint8_t can_node_odr_controller  = 0x0002;
const uint8_t can_node_odr_sonar_front = 0x0003;
const uint8_t can_node_odr_motion      = 0x0004;
const uint8_t can_node_odr_display     = 0x0005;
const uint8_t can_node_odr_monitor     = 0x0006;

// ----------------------------------------------------------------------------------------
//  sensor modules

const uint8_t can_node_sensor_gps  = 0x0030;
const uint8_t can_node_sensor_imu  = 0x0031;
const uint8_t can_node_sensor_pixy = 0x0032;

// ----------------------------------------------------------------------------------------
#endif  // #if !defined(BCDRL_COMMON_CAN_CAN_NODES_H)
// ----------------------------------------------------------------------------------------