#include "sceptre.h"#include "btm222.h"#include <string.h>#include <stdio.h>Go to the source code of this file.
Defines | |
| #define | DBG_UART0 0 |
Enumerations | |
| enum | { connect_hook_idle = 0, connect_hook_armed, connect_hook_waiting_for_id, connect_hook_collecting_id } |
Functions | |
| bool_t | btm222_connect_hook (uint32_t ch) |
| bool_t | btm222_putc (uint8_t ch) |
| bool_t | btm222_write (uint8_t *p_data, uint32_t data_size) |
| void | btm222_write_ex (uint8_t *p_data) |
| bool_t | btm222_write_command (uint8_t *p_cmd) |
| bool_t | btm222_command (char *p_cmd, char *p_data, uint8_t data_size_max) |
| uint8_t | btm222_seek_devices (void) |
| void | btm222_get_parameter (uint8_t param) |
| void | btm222_get_all_parameters (void) |
| void | btm222_connect_hook_arm (bool_t reconnect) |
| bool_t | btm222_is_connected (void) |
| bool_t | btm222_wait_for_connect (uint32_t timeout_ms, bool_t reconnect) |
| char * | btm222_get_peer_id (void) |
Variables | |
| const char | btm222_ok_str [] = "OK" |
| const char | btm222_error_str [] = "ERROR" |
| const char | btm222_connect_str [] = "CONNECT" |
| const char | btm222_disconnect_str [] = "DISCONNECT" |
| char | btm222_peer_id [BTM222_MAX_PEER_ID+1] = "<not connected>" |
| btm222_device_t | btm222_devices [BTM_MAX_DEVICES] |
| int32_t | btm222_n_o_devices = 0 |
| bool_t | btm222_connected = false |
| char * | p_connect = NULL |
| char * | p_disconnect = NULL |
| char * | p_peer = NULL |
| uint8_t | connect_hook_mode = connect_hook_idle |
| bool_t | connect_hook_reconnect = false |
Low-level BTM-112, BTM-222 Bluetooth module driver implementation.
Definition in file btm222.c.
1.6.2