hall_sensor_ISR.h File Reference

#include "config.h"

Go to the source code of this file.

Functions

U16 get_position (void)
 get position: to get window position safely under critical section
void put_position (U16)
 put position: to override position safely under critical section
signed int get_hall_delta_period (void)
 Get hall period: Returns time difference between two last hall sensor edges.

Variables

U8 hall_direction
 Direction detected using hall sensor Range : [DOWNWARD, UPWARD].


Function Documentation

U16 get_position ( void   ) 

get position: to get window position safely under critical section

Referenced by blocking_point(), init_window_size_position(), save_window_parameters(), and window_ctrl().

void put_position ( U16   ) 

put position: to override position safely under critical section

Referenced by init_window_size_position(), and window_ctrl().

signed int get_hall_delta_period ( void   ) 

Get hall period: Returns time difference between two last hall sensor edges.

It could be considered like motor derivative speed (dv = 1 / dt).


Variable Documentation

U8 hall_direction

Direction detected using hall sensor Range : [DOWNWARD, UPWARD].

Definition at line 47 of file hall_sensor_ISR.c.


Generated on Mon May 28 20:26:50 2007 for WINDOWLIFTLIBRARY by  doxygen 1.4.7