123
Fork of LG by
Diff: DeviceDither.h
- Revision:
- 156:e68ee0bcdcda
- Parent:
- 149:abbf7663d27d
- Child:
- 161:efd949e8d536
diff -r 94e7ac5fea58 -r e68ee0bcdcda DeviceDither.h --- a/DeviceDither.h Fri May 06 14:08:54 2016 +0000 +++ b/DeviceDither.h Mon May 09 20:03:26 2016 +0000 @@ -4,21 +4,16 @@ typedef struct _DeviceDitherSettings { uint32_t rise; uint32_t fall; - uint8_t enabled; //dither on/off - uint8_t oscillationFrequencyLoop; - uint8_t outputFrequencyLoop; + uint8_t enabled; //dither on/off } DeviceDitherSettings; typedef struct _DeviceDitherState { - uint32_t inPeriodCounter; //low resolution counter - 32 counts per period, zeroed every dither period - uint32_t counter100kHz; //high (10 mks)resolution counter, zeroed at each dither half period - uint32_t rise; //rising edge position in high resolution ticks - uint32_t fall; //falling edge position in high resolution ticks - uint8_t enabled; //dither on/off - uint8_t pin1; //pin 1 state - uint8_t pin2; //pin 2 state - uint8_t oscillationFrequencyLoop; - uint8_t outputFrequencyLoop; + uint32_t counter; //10 mks resolution counter, zeroed at each dither half period + uint32_t rise; //rising edge position in 10 mks resolution ticks + uint32_t fall; //falling edge position in 10 mks resolution ticks + uint8_t enabled; //dither on/off + uint8_t pin1; //pin 1 state + uint8_t pin2; //pin 2 state } DeviceDitherState; typedef struct _DeviceDither { @@ -28,7 +23,7 @@ void InitDitherWithDefaults(void); void InitDither(void); -void StartDither(void); -void DitherCycle(void); +void DeviceStartDither(void); +void DeviceDitherCycle(void); #endif /* __DEVICE_DITHER_H__ */ \ No newline at end of file