stepRocker servo Open Source TMCL  1.00
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
IO.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Project: stepRocker Mini-TMCL (for stepRocker V2.2)
3 
4  Module: IO.h
5  Definitions of I/O functions
6 
7  Copyright (C) 2016 TRINAMIC Motion Control GmbH & Co KG
8  Waterloohain 5
9  D - 22769 Hamburg, Germany
10  http://www.trinamic.com/
11 
12  This program is free software; you can redistribute it and/or modify it
13  freely.
14 
15  This program is distributed "as is" in the hope that it will be useful, but
16  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17  or FITNESS FOR A PARTICULAR PURPOSE.
18 *******************************************************************************/
19 
30 void InitIO(void);
31 void EnableInterrupts(void);
32 void DisableInterrupts(void);
33 void ResetCPU(UCHAR ResetPeripherals);
34 void SetMotorCurrent(UCHAR Motor, UCHAR Current);
void ResetCPU(UCHAR ResetPeripherals)
Reset the CPU.
Definition: IO.c:177
UCHAR GetStallState(UCHAR Motor)
Get stall flag state of motor driver.
Definition: IO.c:210
void InitIO(void)
Initialize I/O.
Definition: IO.c:54
void EnableInterrupts(void)
Enable all interrupts.
Definition: IO.c:151
void SetMotorCurrent(UCHAR Motor, UCHAR Current)
Set motor current.
Definition: IO.c:195
void DisableInterrupts(void)
Disable all interrupts.
Definition: IO.c:163
unsigned char UCHAR
8 bits unsigned
Definition: stepRocker.h:31