mesh: move struct definition to mesh_generic_model.h

This commit is contained in:
Milanka Ringwald 2019-06-27 08:35:40 +02:00 committed by Matthias Ringwald
parent 353f45a0f9
commit 718bf0fc6a
2 changed files with 15 additions and 15 deletions

View File

@ -46,21 +46,6 @@ extern "C"
{
#endif
typedef struct {
mesh_transition_t base_transition;
int16_t current_value;
int16_t initial_value;
int16_t target_value;
int16_t stepwise_value_increment;
int16_t delta_from_initial_value;
int16_t transition_speed;
} mesh_transition_int16_t;
typedef struct {
mesh_transition_int16_t transition_data;
} mesh_generic_level_state_t;
const mesh_operation_t * mesh_generic_level_server_get_operations(void);
/**
* @brief Register packet handler

View File

@ -64,10 +64,25 @@ typedef struct {
uint8_t target_value;
} mesh_transition_bool_t;
typedef struct {
mesh_transition_t base_transition;
int16_t current_value;
int16_t initial_value;
int16_t target_value;
int16_t stepwise_value_increment;
int16_t delta_from_initial_value;
int16_t transition_speed;
} mesh_transition_int16_t;
typedef struct {
mesh_transition_bool_t transition_data;
} mesh_generic_on_off_state_t;
typedef struct {
mesh_transition_int16_t transition_data;
} mesh_generic_level_state_t;
#ifdef __cplusplus
} /* end of extern "C" */
#endif