2009-05-19 21:49:12 +00:00
|
|
|
/*
|
|
|
|
* bt_control.h
|
|
|
|
*
|
|
|
|
* BT Control API -- allows BT Daemon to initialize and control differnt hardware
|
|
|
|
*
|
|
|
|
* Created by Matthias Ringwald on 5/19/09.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-05-20 20:46:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
2009-05-19 21:49:12 +00:00
|
|
|
typedef struct {
|
|
|
|
int (*on)(void *config); // <-- turn BT module on and configure
|
|
|
|
int (*off)(void *config); // <-- turn BT module off
|
|
|
|
int (*valid)(void *confif); // <-- test if hardware can be supported
|
2009-06-03 21:21:12 +00:00
|
|
|
const char * (*name)(void *config); // <-- return hardware name
|
2009-05-19 21:49:12 +00:00
|
|
|
} bt_control_t;
|