Lines Matching refs:pub
722 struct bt_mesh_cfg_cli_mod_pub *pub; member
732 struct bt_mesh_cfg_cli_mod_pub pub; in mod_pub_status() local
747 pub.addr = net_buf_simple_pull_le16(buf); in mod_pub_status()
748 pub.app_idx = net_buf_simple_pull_le16(buf); in mod_pub_status()
749 pub.cred_flag = (pub.app_idx & BIT(12)); in mod_pub_status()
750 pub.app_idx &= BIT_MASK(12); in mod_pub_status()
751 pub.ttl = net_buf_simple_pull_u8(buf); in mod_pub_status()
752 pub.period = net_buf_simple_pull_u8(buf); in mod_pub_status()
753 pub.transmit = net_buf_simple_pull_u8(buf); in mod_pub_status()
781 if (param->pub) { in mod_pub_status()
782 param->pub->addr = pub.addr; in mod_pub_status()
783 param->pub->app_idx = pub.app_idx; in mod_pub_status()
784 param->pub->cred_flag = pub.cred_flag; in mod_pub_status()
785 param->pub->ttl = pub.ttl; in mod_pub_status()
786 param->pub->period = pub.period; in mod_pub_status()
787 param->pub->transmit = pub.transmit; in mod_pub_status()
795 cli->cb->mod_pub_status(cli, ctx->addr, status, elem_addr, mod_id, cid, &pub); in mod_pub_status()
934 struct bt_mesh_cfg_cli_hb_pub *pub; member
943 struct bt_mesh_cfg_cli_hb_pub pub; in hb_pub_status() local
949 pub.dst = net_buf_simple_pull_le16(buf); in hb_pub_status()
950 pub.count = net_buf_simple_pull_u8(buf); in hb_pub_status()
951 pub.period = net_buf_simple_pull_u8(buf); in hb_pub_status()
952 pub.ttl = net_buf_simple_pull_u8(buf); in hb_pub_status()
953 pub.feat = net_buf_simple_pull_le16(buf); in hb_pub_status()
954 pub.net_idx = net_buf_simple_pull_le16(buf) & 0xfff; in hb_pub_status()
962 if (param->pub) { in hb_pub_status()
963 *param->pub = pub; in hb_pub_status()
970 cli->cb->hb_pub_status(cli, ctx->addr, status, &pub); in hb_pub_status()
1918 uint16_t cid, struct bt_mesh_cfg_cli_mod_pub *pub, uint8_t *status) in mod_pub_get() argument
1927 .pub = pub, in mod_pub_get()
1946 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !pub ? NULL : &rsp); in mod_pub_get()
1950 uint16_t mod_id, struct bt_mesh_cfg_cli_mod_pub *pub, in bt_mesh_cfg_cli_mod_pub_get() argument
1953 return mod_pub_get(net_idx, addr, elem_addr, mod_id, CID_NVAL, pub, status); in bt_mesh_cfg_cli_mod_pub_get()
1958 struct bt_mesh_cfg_cli_mod_pub *pub, uint8_t *status) in bt_mesh_cfg_cli_mod_pub_get_vnd() argument
1964 return mod_pub_get(net_idx, addr, elem_addr, mod_id, cid, pub, status); in bt_mesh_cfg_cli_mod_pub_get_vnd()
1968 uint16_t cid, struct bt_mesh_cfg_cli_mod_pub *pub, uint8_t *status) in mod_pub_set() argument
1977 .pub = pub, in mod_pub_set()
1989 net_buf_simple_add_le16(&msg, pub->addr); in mod_pub_set()
1990 net_buf_simple_add_le16(&msg, (pub->app_idx | (pub->cred_flag << 12))); in mod_pub_set()
1991 net_buf_simple_add_u8(&msg, pub->ttl); in mod_pub_set()
1992 net_buf_simple_add_u8(&msg, pub->period); in mod_pub_set()
1993 net_buf_simple_add_u8(&msg, pub->transmit); in mod_pub_set()
2005 uint16_t cid, struct bt_mesh_cfg_cli_mod_pub *pub, uint8_t *status) in mod_pub_va_set() argument
2014 .pub = pub, in mod_pub_va_set()
2023 LOG_DBG("app_idx 0x%04x", pub->app_idx); in mod_pub_va_set()
2027 net_buf_simple_add_mem(&msg, pub->uuid, 16); in mod_pub_va_set()
2028 net_buf_simple_add_le16(&msg, (pub->app_idx | (pub->cred_flag << 12))); in mod_pub_va_set()
2029 net_buf_simple_add_u8(&msg, pub->ttl); in mod_pub_va_set()
2030 net_buf_simple_add_u8(&msg, pub->period); in mod_pub_va_set()
2031 net_buf_simple_add_u8(&msg, pub->transmit); in mod_pub_va_set()
2043 uint16_t mod_id, struct bt_mesh_cfg_cli_mod_pub *pub, in bt_mesh_cfg_cli_mod_pub_set() argument
2046 if (!pub) { in bt_mesh_cfg_cli_mod_pub_set()
2050 if (pub->uuid) { in bt_mesh_cfg_cli_mod_pub_set()
2051 return mod_pub_va_set(net_idx, addr, elem_addr, mod_id, CID_NVAL, pub, status); in bt_mesh_cfg_cli_mod_pub_set()
2053 return mod_pub_set(net_idx, addr, elem_addr, mod_id, CID_NVAL, pub, status); in bt_mesh_cfg_cli_mod_pub_set()
2059 struct bt_mesh_cfg_cli_mod_pub *pub, uint8_t *status) in bt_mesh_cfg_cli_mod_pub_set_vnd() argument
2061 if (!pub) { in bt_mesh_cfg_cli_mod_pub_set_vnd()
2069 if (pub->uuid) { in bt_mesh_cfg_cli_mod_pub_set_vnd()
2070 return mod_pub_va_set(net_idx, addr, elem_addr, mod_id, cid, pub, status); in bt_mesh_cfg_cli_mod_pub_set_vnd()
2072 return mod_pub_set(net_idx, addr, elem_addr, mod_id, cid, pub, status); in bt_mesh_cfg_cli_mod_pub_set_vnd()
2127 const struct bt_mesh_cfg_cli_hb_pub *pub, uint8_t *status) in bt_mesh_cfg_cli_hb_pub_set() argument
2135 if (!pub) { in bt_mesh_cfg_cli_hb_pub_set()
2147 net_buf_simple_add_le16(&msg, pub->dst); in bt_mesh_cfg_cli_hb_pub_set()
2148 net_buf_simple_add_u8(&msg, pub->count); in bt_mesh_cfg_cli_hb_pub_set()
2149 net_buf_simple_add_u8(&msg, pub->period); in bt_mesh_cfg_cli_hb_pub_set()
2150 net_buf_simple_add_u8(&msg, pub->ttl); in bt_mesh_cfg_cli_hb_pub_set()
2151 net_buf_simple_add_le16(&msg, pub->feat); in bt_mesh_cfg_cli_hb_pub_set()
2152 net_buf_simple_add_le16(&msg, pub->net_idx); in bt_mesh_cfg_cli_hb_pub_set()
2157 int bt_mesh_cfg_cli_hb_pub_get(uint16_t net_idx, uint16_t addr, struct bt_mesh_cfg_cli_hb_pub *pub, in bt_mesh_cfg_cli_hb_pub_get() argument
2164 .pub = pub, in bt_mesh_cfg_cli_hb_pub_get()
2175 return bt_mesh_msg_ackd_send(cli->model, &ctx, &msg, !status && !pub ? NULL : &rsp); in bt_mesh_cfg_cli_hb_pub_get()