TFC library Kacper

Dependents:   2018_NXP_car_Kacper

Fork of FRDM-TFC by Eli Hughes

Revision:
9:06ec88181b40
Parent:
3:23cce037011f
--- a/TFC.h	Thu Feb 11 14:58:08 2016 +0000
+++ b/TFC.h	Mon Apr 30 18:32:16 2018 +0000
@@ -149,7 +149,7 @@
 * It can be used to synchronize events to the start of a servo cycle. ServoTicker is a volatile uint32_t and is updated in the TPM1 overlflow interrupt.  This means you will see ServoTicker increment on the rising edge of the servo PWM signal
 *
 */
- extern volatile uint32_t TFC_ServoTicker;
+extern volatile uint32_t TFC_ServoTicker;
 
 
 /** Gets the state of the 4-positiomn DIP switch on the FRDM-TFC
@@ -211,6 +211,9 @@
 */
 float TFC_ReadPot(uint8_t Channel);
 
+/// Reads potentiometers with range from 0 to 100
+float TFC_ReadPotRange(uint8_t Channel);
+
 /** Gets the current battery voltage
 *
 *  @returns    Battery voltage in floating point form.
@@ -227,8 +230,8 @@
 void TFC_SetBatteryLED_Level(uint8_t BattLevel);
 
 
-/** Pointer to two channels of line scan camera data.   Each channel is 128 points of uint8_t's.  Note that the underlying implementation is ping-pong buffer  These pointers will point to the 
-*inactive buffer.   
+/** Pointer to two channels of line scan camera data.   Each channel is 128 points of uint8_t's.  Note that the underlying implementation is ping-pong buffer  These pointers will point to the
+*inactive buffer.
 *
 */