ROS Serial C client library
|
ROS Serial C hardware abstraction header. More...
#include "ros_types.h"
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. |
ROS Serial C hardware abstraction header.
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.
enum LED |
LED enumerator.
Indicates different signals or states.
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 |
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.
Initialize current hardware.
void hardwareToggleLED | ( | LED_t | led | ) |
Toggles specific hardware LED.
byte | pointer to byte where value is send from |