RetroArch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <ogcsys.h>
#include <gccore.h>
#include "hci.h"
#include "l2cap.h"
#include "btmemb.h"
#include "btpbuf.h"
Functions | |
static u16_t | l2cap_cid_alloc (void) |
MEMB (l2cap_pcbs, sizeof(struct l2cap_pcb), MEMB_NUM_L2CAP_PCB) | |
MEMB (l2cap_listenpcbs, sizeof(struct l2cap_pcb_listen), MEMB_NUM_L2CAP_PCB_LISTEN) | |
MEMB (l2cap_sigs, sizeof(struct l2cap_sig), MEMB_NUM_L2CAP_SIG) | |
MEMB (l2cap_segs, sizeof(struct l2cap_seg), MEMB_NUM_L2CAP_SEG) | |
void | l2cap_init () |
void | l2cap_tmr () |
err_t | l2cap_write (struct bd_addr *bdaddr, struct pbuf *p, u16_t len) |
void | l2cap_process_sig (struct pbuf *q, struct l2cap_hdr *l2caphdr, struct bd_addr *bdaddr) |
void | l2cap_input (struct pbuf *p, struct bd_addr *bdaddr) |
struct l2cap_pcb * | l2cap_new (void) |
err_t | l2cap_close (struct l2cap_pcb *pcb) |
void | l2cap_reset_all (void) |
err_t | l2cap_signal (struct l2cap_pcb *pcb, u8_t code, u16_t ursp_id, struct bd_addr *remote_bdaddr, struct pbuf *data) |
err_t | l2cap_rexmit_signal (struct l2cap_pcb *pcb, struct l2cap_sig *sig) |
err_t | l2ca_connect_req (struct l2cap_pcb *pcb, struct bd_addr *bdaddr, u16_t psm, u8_t role_switch, err_t(*l2ca_connect_cfm)(void *arg, struct l2cap_pcb *lpcb, u16_t result, u16_t status)) |
err_t | l2ca_config_req (struct l2cap_pcb *pcb) |
err_t | l2ca_disconnect_req (struct l2cap_pcb *pcb, err_t(*l2ca_disconnect_cfm)(void *arg, struct l2cap_pcb *pcb)) |
err_t | l2ca_datawrite (struct l2cap_pcb *pcb, struct pbuf *p) |
err_t | l2ca_ping (struct bd_addr *bdaddr, struct l2cap_pcb *tpcb, err_t(*l2ca_pong)(void *arg, struct l2cap_pcb *pcb, u8_t result)) |
void | lp_connect_cfm (struct bd_addr *bdaddr, u8_t encrypt_mode, err_t err) |
void | lp_connect_ind (struct bd_addr *bdaddr) |
void | lp_disconnect_ind (struct bd_addr *bdaddr, u8_t reason) |
u8_t | l2cap_next_sigid (void) |
void | l2cap_arg (struct l2cap_pcb *pcb, void *arg) |
err_t | l2cap_connect_ind (struct l2cap_pcb *npcb, struct bd_addr *bdaddr, u16_t psm, err_t(*l2ca_connect_ind)(void *arg, struct l2cap_pcb *pcb, err_t err)) |
void | l2cap_disconnect_ind (struct l2cap_pcb *pcb, err_t(*l2ca_disconnect_ind)(void *arg, struct l2cap_pcb *newpcb, err_t err)) |
void | l2cap_timeout_ind (struct l2cap_pcb *pcb, err_t(*l2ca_timeout_ind)(void *arg, struct l2cap_pcb *newpcb, err_t err)) |
void | l2cap_recv (struct l2cap_pcb *pcb, err_t(*l2ca_recv)(void *arg, struct l2cap_pcb *pcb, struct pbuf *p, err_t err)) |
Variables | |
u8_t | sigid_nxt |
struct l2cap_pcb_listen * | l2cap_listen_pcbs = NULL |
struct l2cap_pcb * | l2cap_active_pcbs |
struct l2cap_pcb * | l2cap_tmp_pcb = NULL |
struct l2cap_sig * | l2cap_tmp_sig = NULL |
struct l2cap_seg * | l2cap_insegs = NULL |
struct l2cap_seg * | l2cap_tmp_inseg = NULL |
static void(* | l2cap_disconnect_bb_cb )(struct bd_addr *bdaddr, u8_t reason) = NULL |
void(*)(struct bd_addr *bdaddr, u8_t reason) | l2cap_disconnect_bb (void(*l2ca_disconnect_bb)(struct bd_addr *bdaddr, u8_t reason)) |
err_t l2ca_connect_req | ( | struct l2cap_pcb * | pcb, |
struct bd_addr * | bdaddr, | ||
u16_t | psm, | ||
u8_t | role_switch, | ||
err_t(*)(void *arg, struct l2cap_pcb *lpcb, u16_t result, u16_t status) | l2ca_connect_cfm | ||
) |
err_t l2ca_disconnect_req | ( | struct l2cap_pcb * | pcb, |
err_t(*)(void *arg, struct l2cap_pcb *pcb) | l2ca_disconnect_cfm | ||
) |
err_t l2ca_ping | ( | struct bd_addr * | bdaddr, |
struct l2cap_pcb * | tpcb, | ||
err_t(*)(void *arg, struct l2cap_pcb *pcb, u8_t result) | l2ca_pong | ||
) |
err_t l2cap_connect_ind | ( | struct l2cap_pcb * | npcb, |
struct bd_addr * | bdaddr, | ||
u16_t | psm, | ||
err_t(*)(void *arg, struct l2cap_pcb *pcb, err_t err) | l2ca_connect_ind | ||
) |
void l2cap_disconnect_ind | ( | struct l2cap_pcb * | pcb, |
err_t(*)(void *arg, struct l2cap_pcb *newpcb, err_t err) | l2ca_disconnect_ind | ||
) |
void l2cap_init | ( | ) |
void l2cap_recv | ( | struct l2cap_pcb * | pcb, |
err_t(*)(void *arg, struct l2cap_pcb *pcb, struct pbuf *p, err_t err) | l2ca_recv | ||
) |
err_t l2cap_signal | ( | struct l2cap_pcb * | pcb, |
u8_t | code, | ||
u16_t | ursp_id, | ||
struct bd_addr * | remote_bdaddr, | ||
struct pbuf * | data | ||
) |
void l2cap_timeout_ind | ( | struct l2cap_pcb * | pcb, |
err_t(*)(void *arg, struct l2cap_pcb *newpcb, err_t err) | l2ca_timeout_ind | ||
) |
void l2cap_tmr | ( | ) |
MEMB | ( | l2cap_pcbs | , |
sizeof(struct l2cap_pcb) | , | ||
MEMB_NUM_L2CAP_PCB | |||
) |
MEMB | ( | l2cap_listenpcbs | , |
sizeof(struct l2cap_pcb_listen) | , | ||
MEMB_NUM_L2CAP_PCB_LISTEN | |||
) |
MEMB | ( | l2cap_sigs | , |
sizeof(struct l2cap_sig) | , | ||
MEMB_NUM_L2CAP_SIG | |||
) |
MEMB | ( | l2cap_segs | , |
sizeof(struct l2cap_seg) | , | ||
MEMB_NUM_L2CAP_SEG | |||
) |
struct l2cap_pcb* l2cap_active_pcbs |
void(*)(struct bd_addr *bdaddr, u8_t reason) l2cap_disconnect_bb(void(*l2ca_disconnect_bb)(struct bd_addr *bdaddr, u8_t reason)) |
struct l2cap_pcb_listen* l2cap_listen_pcbs = NULL |
u8_t sigid_nxt |