btnut/btnode/include/hardware/btn-hardware.h File Reference


Detailed Description

Functions to init and control all hardware dependend calls.

Author:
Martin Hinz <btnode@hinz.ch>
Attention:
Use always btn_hardware_init() function in your program code to include the init0 section to turn on xsram at the very beginning.
26.05.2004 Martin Hinz <btnode@hinz.ch>

#include <sys/types.h>
#include <arch/btn-hardware.h>
#include <hardware/btn-latch.h>

Functions

void btn_hardware_bt_on (void)
void btn_hardware_bt_power (u_char on)
void btn_hardware_bt_power_off (void)
void btn_hardware_bt_power_on (void)
void btn_hardware_bt_radio_power (u_char on)
void btn_hardware_bt_reset (u_char reset)
void btn_hardware_cc1000_power (u_char on)
void btn_hardware_init (void)
void btn_hardware_io_power (u_char on)


Function Documentation

void btn_hardware_bt_on ( void   ) 

This function turns on the power of the bt module and the bt radio, does a reset of the module and sleeps for a short period of time to let the bt module boot

Examples:
bt-lego/bt-lego.c, bt-remoteprog/demo-rprog.c, btstreamer/receiver/btreceiver.c, btstreamer/streamer/btstreamer.c, l2cap-cmd/l2cap-cmd.c, mhop_blink/mhop_blink.c, and rfcomm-cmd/rfcomm-cmd.c.

void btn_hardware_bt_power ( u_char  on  ) 

turns power latch of bt module on and off

Parameters:
on 1=on/ 0=off

void btn_hardware_bt_power_off ( void   ) 

This function turns off the power of the bt module and the bt radio and hold the reset pin

only available on BTnode3

void btn_hardware_bt_power_on ( void   ) 

This function turns on the power of the bt module and the bt radio, release the reset pin and let the bt module boot

only available on BTnode3

void btn_hardware_bt_radio_power ( u_char  on  ) 

turns the bt radio on and off

Parameters:
on 1=on/ 0=off
only available on Ericsson modules in BTnode2

void btn_hardware_bt_reset ( u_char  reset  ) 

controlls the reset pin on the bt module

Parameters:
reset 1=reset/ 0=no reset

void btn_hardware_cc1000_power ( u_char  on  ) 

turns power latch of cc1000 radio on and off

Parameters:
on 1=on/ 0=off

void btn_hardware_init ( void   ) 

this init function has to be called by every application at the beginning of the main procedure. with the call of this function the init0 section with the xsram settings will be set

Examples:
bt-lego/bt-lego.c, bt-remoteprog/demo-rprog.c, btstreamer/receiver/btreceiver.c, btstreamer/streamer/btstreamer.c, ccc-cmd/ccc-cmd.c, l2cap-cmd/l2cap-cmd.c, mhop_blink/mhop_blink.c, rfcomm-cmd/rfcomm-cmd.c, sensor-app/senso.c, uart-echo/uart-echo.c, and uart-suart/uart-suart.c.

void btn_hardware_io_power ( u_char  on  ) 

turns power latch of external hardware on and off

Parameters:
on 1=on/ 0=off
Examples:
sensor-app/senso.c.


Generated on Wed Apr 29 11:12:28 2009 for BTnut System Software by doxygen 1.5.1
!!! Dieses Dokument stammt aus dem ETH Web-Archiv und wird nicht mehr gepflegt !!!
!!! This document is stored in the ETH Web archive and is no longer maintained !!!