ROS Serial C client library
hal/include/ros_hardware.h File Reference

ROS Serial C hardware abstraction header. More...

#include "ros_types.h"
Include dependency graph for ros_hardware.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum LED LED_t
 LED enumerator.

Enumerations

enum  LED { SPIN_LED, SYNC_LED, LOCK_LED, ERROR_LED }
 LED enumerator. More...

Functions

rosReturnCode_t hardwareInit ()
 Initialize current hardware.
uint32_t hardwareGetTime ()
 Get current hardware time.
void hardwareToggleLED (LED_t led)
 Toggles specific hardware LED.

Detailed Description

ROS Serial C hardware abstraction header.

Date:
04/19/2013
Author:
Peter Rudolph

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

License:
This library is released under LGPLv3.

Typedef Documentation

typedef enum LED LED_t

LED enumerator.

Indicates different signals or states.


Enumeration Type Documentation

enum LED

LED enumerator.

Indicates different signals or states.

Enumerator:
SPIN_LED 

rosSpin() or rosSpinOnce() is called

SYNC_LED 

ROS is syncing

LOCK_LED 

System is locked for interface operations

ERROR_LED 

An error occured


Function Documentation

uint32_t hardwareGetTime ( )

Get current hardware time.

Implementation must return uC lifetime in milliseconds. Either use SysTick interrupt or use OS specific function, e.g. tick-hooks.

Returns:
controller life time in milliseconds

Here is the call graph for this function:

Here is the caller graph for this function:

Initialize current hardware.

Returns:
controller life time in milliseconds

Here is the call graph for this function:

Here is the caller graph for this function:

void hardwareToggleLED ( LED_t  led)

Toggles specific hardware LED.

Parameters:
bytepointer to byte where value is send from

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines