Main Page | Modules | File List | Globals

hemisson.h File Reference


Detailed Description

This file is the library of all high level functions that can be used when programming Hemisson.

Definition in file hemisson.h.

Go to the source code of this file.

Functions

void hemisson_init (void)
 Hemisson Initialisation. This function initialise all Hemisson peripherals.

void hemisson_config_auto_refresh_sensors (int1 Bit)
 Set the refresh mode of all IRs sensors.

void hemisson_config_auto_refresh_tv_remote (int1 Bit)
 Configure the refresh mode of the TV remote receiver.

void hemisson_config_rs232_control (int1 Bit)
 Configure the Serial Remote Control.

void hemisson_config_tv_remote_control (int1 Bit)
 Configure the TV Remote Control.

int1 hemisson_flag_sensors_refreshed (void)
 Test if IRs sensors have been refreshed.

void hemisson_flag_sensors_reset (void)
 Clear IRs sensors refreshed flag.

int1 hemisson_flag_rs232_filtering (void)
 Test if Serial Remote Control is active or not.

int1 hemisson_flag_tv_data_refreshed (void)
 Test if Tv Data have been refreshed.

void hemisson_flag_tv_data_reset (void)
 Clear TV Data flag.

unsigned char hemisson_get_proximity (char Sensor)
 Get proximity value of one IR sensor.

unsigned char hemisson_get_brightness (char Sensor)
 Get brightness value of one IR sensor.

int1 hemisson_get_switch_state (char Switch_Number)
 Get Switch State.

char hemisson_get_tv_data (void)
 Get latest data from the TV remote receiver.

void hemisson_set_speed (signed int8 LeftSpeed, signed int8 RightSpeed)
 Set speed of each motor.

void hemisson_beep (int1 State)
 Set the buzzer State.

void hemisson_led_frontleft (int1 State)
 Set the FrontLeft Led State.

void hemisson_led_frontright (int1 State)
 Set the FrontRight Led State.

void hemisson_led_pgmexec (int1 State)
 Set the PgmExec Led State.

void hemisson_led_onoff (int1 State)
 Set the OnOff Led State.

void hemisson_manual_refresh_sensors (char Zone)
 Manualy refresh a zone.

void hemisson_delay_s (int Delay)
 This function stop program execution (but not the interrupts) during the defined time in second.

void hemisson_delay_ms (int Delay)
 This function stop program execution (but not the interrupts) during the defined time in millisecond.

void hemisson_delay_us (int Delay)
 This function stop program execution (but not the interrupts) during the defined time in microsecond.

unsigned int32 hemisson_get_time (void)
 This function return a 32 bits value which is increased every ms.

void hemisson_set_time (unsigned int32 Time)
 This function allow user to set the current time value.

int1 hemisson_ext_read_PINB0 (void)
 Read input PORTB.0.

int1 hemisson_ext_read_PINB6 (void)
 Read input PORTB.6.

int1 hemisson_ext_read_PINB7 (void)
 Read input PORTB.7.

void hemisson_ext_write_PINB0 (int1 Bit)
 Write output PORTB.0.

void hemisson_ext_write_PINB6 (int1 Bit)
 Write output PORTB.6.

void hemisson_ext_write_PINB7 (int1 Bit)
 Write output PORTB.7.


Generated on Mon Feb 23 23:53:22 2004 for HemiOs by doxygen 1.3.4