14struct bt_mesh_gen_model_cli {
22extern const struct bt_mesh_model_op gen_onoff_cli_op[];
25#define BT_MESH_MODEL_GEN_ONOFF_CLI(cli_data, pub) \
26 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_ONOFF_CLI, gen_onoff_cli_op, pub,\
27 cli_data, &bt_mesh_gen_onoff_cli_cb)
29extern const struct bt_mesh_model_op gen_level_cli_op[];
32#define BT_MESH_MODEL_GEN_LEVEL_CLI(cli_data, pub) \
33 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_LEVEL_CLI, gen_level_cli_op, pub,\
34 cli_data, &bt_mesh_gen_level_cli_cb)
36int bt_mesh_gen_onoff_get(uint16_t net_idx, uint16_t addr, uint16_t app_idx,
38int bt_mesh_gen_onoff_set(uint16_t net_idx, uint16_t addr, uint16_t app_idx,
39 uint8_t val, uint8_t *state);
40int bt_mesh_gen_level_get(uint16_t net_idx, uint16_t addr, uint16_t app_idx,
42int bt_mesh_gen_level_set(uint16_t net_idx, uint16_t addr, uint16_t app_idx,
43 int16_t val, int16_t *state);