Home
last modified time | relevance | path

Searched refs:ag (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/bluetooth/host/classic/
Dhfp_ag.c35 typedef int (*bt_hfp_ag_parse_command_t)(struct bt_hfp_ag *ag, struct net_buf *buf);
57 typedef void (*bt_hfp_ag_tx_cb_t)(struct bt_hfp_ag *ag, void *user_data);
62 struct bt_hfp_ag *ag; member
125 static void hfp_ag_lock(struct bt_hfp_ag *ag) in hfp_ag_lock() argument
127 k_sem_take(&ag->lock, K_FOREVER); in hfp_ag_lock()
130 static void hfp_ag_unlock(struct bt_hfp_ag *ag) in hfp_ag_unlock() argument
132 k_sem_give(&ag->lock); in hfp_ag_unlock()
135 static void bt_hfp_ag_set_state(struct bt_hfp_ag *ag, bt_hfp_state_t state) in bt_hfp_ag_set_state() argument
137 LOG_DBG("update state %p, old %d -> new %d", ag, ag->state, state); in bt_hfp_ag_set_state()
139 hfp_ag_lock(ag); in bt_hfp_ag_set_state()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/classic/
Dhfp_ag.h55 void (*connected)(struct bt_hfp_ag *ag);
64 void (*disconnected)(struct bt_hfp_ag *ag);
73 void (*sco_connected)(struct bt_hfp_ag *ag, struct bt_conn *sco_conn);
82 void (*sco_disconnected)(struct bt_hfp_ag *ag);
96 int (*memory_dial)(struct bt_hfp_ag *ag, const char *location, char **number);
106 void (*outgoing)(struct bt_hfp_ag *ag, const char *number);
116 void (*incoming)(struct bt_hfp_ag *ag, const char *number);
126 void (*ringing)(struct bt_hfp_ag *ag, bool in_band);
135 void (*accept)(struct bt_hfp_ag *ag);
144 void (*reject)(struct bt_hfp_ag *ag);
[all …]
/Zephyr-latest/samples/bluetooth/handsfree_ag/src/
Dmain.c44 static void ag_connected(struct bt_hfp_ag *ag) in ag_connected() argument
50 static void ag_disconnected(struct bt_hfp_ag *ag) in ag_disconnected() argument
55 static void ag_sco_connected(struct bt_hfp_ag *ag, struct bt_conn *sco_conn) in ag_sco_connected() argument
60 static void ag_sco_disconnected(struct bt_hfp_ag *ag) in ag_sco_disconnected() argument
65 static void ag_ringing(struct bt_hfp_ag *ag, bool in_band) in ag_ringing() argument
70 static void ag_accept(struct bt_hfp_ag *ag) in ag_accept() argument
76 static void ag_reject(struct bt_hfp_ag *ag) in ag_reject() argument
82 static void ag_terminate(struct bt_hfp_ag *ag) in ag_terminate() argument
88 static void ag_outgoing(struct bt_hfp_ag *ag, const char *number) in ag_outgoing() argument
95 static void ag_incoming(struct bt_hfp_ag *ag, const char *number) in ag_incoming() argument