RetroArch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <ogcsys.h>
#include <gccore.h>
#include <lwp_threads.h>
#include "bt.h"
#include "bte.h"
#include "hci.h"
#include "l2cap.h"
#include "btmemb.h"
#include "physbusif.h"
Classes | |
struct | bt_state |
struct | ctrl_req_t |
Macros | |
#define | STACKSIZE 32768 |
#define | MQ_BOX_SIZE 256 |
#define | HCI_VENDOR_OGF 0x3f |
#define | HCI_VENDOR_PATCH_START_OCF 0x4f |
#define | HCI_VENDOR_PATCH_CONT_OCF 0x4c |
#define | HCI_VENDOR_PATCH_END_OCF 0x4f |
Enumerations | |
enum | bte_state { STATE_NOTREADY = -1, STATE_READY = 0, STATE_CONNECTING, STATE_CONNECTED, STATE_DISCONNECTING, STATE_DISCONNECTED, STATE_SENDING, STATE_SENT, STATE_RECEIVING, STATE_RECEIVED, STATE_FAILED } |
Variables | |
static struct bt_state | btstate |
static u8_t | bte_patch0 [184] |
static u8_t | bte_patch1 [92] |
void(*)(struct bd_addr *bdaddr, u8 reason) | BTE_SetDisconnectCallback (void(*callback)(struct bd_addr *bdaddr, u8 reason)) |
#define HCI_VENDOR_OGF 0x3f |
#define HCI_VENDOR_PATCH_CONT_OCF 0x4c |
#define HCI_VENDOR_PATCH_END_OCF 0x4f |
#define HCI_VENDOR_PATCH_START_OCF 0x4f |
#define MQ_BOX_SIZE 256 |
#define STACKSIZE 32768 |
enum bte_state |
|
static |
|
static |
|
inlinestatic |
s32 BTE_ApplyPatch | ( | btecallback | cb | ) |
void bte_disconnected | ( | struct bte_pcb * | pcb, |
s32(disconn_cfm)(void *arg, struct bte_pcb *pcb, u8 err) | |||
) |
err_t bte_hci_apply_patch_complete | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
u8_t | ogf, | ||
u8_t | ocf, | ||
u8_t | result | ||
) |
err_t bte_hci_initcore_complete | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
u8_t | ogf, | ||
u8_t | ocf, | ||
u8_t | result | ||
) |
err_t bte_hci_initcore_complete2 | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
u8_t | ogf, | ||
u8_t | ocf, | ||
u8_t | result | ||
) |
err_t bte_hci_initsub_complete | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
u8_t | ogf, | ||
u8_t | ocf, | ||
u8_t | result | ||
) |
void BTE_Init | ( | ) |
s32 BTE_InitCore | ( | btecallback | cb | ) |
s32 BTE_InitSub | ( | btecallback | cb | ) |
s32 bte_inquiry | ( | struct inquiry_info * | info, |
u8 | max_cnt, | ||
u8 | flush | ||
) |
err_t bte_inquiry_complete | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
struct hci_inq_res * | ires, | ||
u16_t | result | ||
) |
s32 bte_inquiry_ex | ( | struct inquiry_info_ex * | info, |
u8 | max_cnt, | ||
u8 | flush | ||
) |
struct bte_pcb* bte_new | ( | ) |
|
static |
|
static |
err_t bte_read_bd_addr_complete | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
u8_t | ogf, | ||
u8_t | ocf, | ||
u8_t | result | ||
) |
err_t bte_read_stored_link_key_complete | ( | void * | arg, |
struct hci_pcb * | pcb, | ||
u8_t | ogf, | ||
u8_t | ocf, | ||
u8_t | result | ||
) |
s32 BTE_ReadBdAddr | ( | struct bd_addr * | bdaddr, |
btecallback | cb | ||
) |
s32 BTE_ReadStoredLinkKey | ( | struct linkkey_info * | keys, |
u8 | max_cnt, | ||
btecallback | cb | ||
) |
s32 bte_registerdeviceasync | ( | struct bte_pcb * | pcb, |
struct bd_addr * | bdaddr, | ||
s32(*)(void *arg, struct bte_pcb *pcb, u8 err) | conn_cfm | ||
) |
|
static |
s32 bte_sendmessageasync | ( | struct bte_pcb * | pcb, |
void * | message, | ||
u16 | len, | ||
s32(*)(void *arg, struct bte_pcb *pcb, u8 err) | sent | ||
) |
void BTE_Shutdown | ( | ) |
MEMB | ( | bte_pcbs | , |
sizeof(struct bte_pcb) | , | ||
MEMP_NUM_BTE_PCB | |||
) |
MEMB | ( | bte_ctrl_reqs | , |
sizeof(struct ctrl_req_t) | , | ||
MEMP_NUM_BTE_CTRLS | |||
) |
|
static |
|
static |
void(*)(struct bd_addr *bdaddr, u8 reason) BTE_SetDisconnectCallback(void(*callback)(struct bd_addr *bdaddr, u8 reason)) |
|
static |