Skip to content

Commit

Permalink
Move PWM color control callbacks from type stubs to the esp32 demo app (
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored Nov 3, 2020
1 parent 47317b0 commit d06daa2
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
27 changes: 27 additions & 0 deletions examples/wifi-echo/server/esp32/main/gen/callback-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2367,3 +2367,30 @@ bool emberAfPluginIdentifyStopFeedbackCallback(uint8_t endpoint)
emberAfPrintln(EMBER_AF_PRINT_IDENTIFY_CLUSTER, "Stop identify callback on endpoint %d", endpoint);
return false;
}

/** @brief Compute Pwm from HSV
*
* This function is called from the color server when it is time for the PWMs to
* be driven with a new value from the HSV values.
*
* @param endpoint The identifying endpoint Ver.: always
*/
void emberAfPluginColorControlServerComputePwmFromHsvCallback(uint8_t endpoint) {}

/** @brief Compute Pwm from HSV
*
* This function is called from the color server when it is time for the PWMs to
* be driven with a new value from the color temperature.
*
* @param endpoint The identifying endpoint Ver.: always
*/
void emberAfPluginColorControlServerComputePwmFromTempCallback(uint8_t endpoint) {}

/** @brief Compute Pwm from HSV
*
* This function is called from the color server when it is time for the PWMs to
* be driven with a new value from the color X and color Y values.
*
* @param endpoint The identifying endpoint Ver.: always
*/
void emberAfPluginColorControlServerComputePwmFromXyCallback(uint8_t endpoint) {}
25 changes: 25 additions & 0 deletions examples/wifi-echo/server/esp32/main/gen/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -8616,6 +8616,31 @@ bool emberAfColorControlClusterStepSaturationCallback(uint8_t stepMode, uint8_t
*/
bool emberAfColorControlClusterStopMoveStepCallback(uint8_t optionsMask, uint8_t optionsOverride);

/** @brief Compute Pwm from HSV
*
* This function is called from the color server when it is time for the PWMs to
* be driven with a new value from the HSV values.
*
* @param endpoint The identifying endpoint Ver.: always
*/
void emberAfPluginColorControlServerComputePwmFromHsvCallback(uint8_t endpoint);
/** @brief Compute Pwm from HSV
*
* This function is called from the color server when it is time for the PWMs to
* be driven with a new value from the color X and color Y values.
*
* @param endpoint The identifying endpoint Ver.: always
*/
void emberAfPluginColorControlServerComputePwmFromXyCallback(uint8_t endpoint);
/** @brief Compute Pwm from HSV
*
* This function is called from the color server when it is time for the PWMs to
* be driven with a new value from the color temperature.
*
* @param endpoint The identifying endpoint Ver.: always
*/
void emberAfPluginColorControlServerComputePwmFromTempCallback(uint8_t endpoint);

/** @} END Color Control Cluster Callbacks */

/** @name Ballast Configuration Cluster Callbacks */
Expand Down
4 changes: 0 additions & 4 deletions src/app/util/types_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -1956,10 +1956,6 @@ typedef struct
#define MILLISECOND_TICKS_PER_SECOND 1000
#define MILLISECOND_TICKS_PER_DECISECOND (MILLISECOND_TICKS_PER_SECOND / 10)

#define emberAfPluginColorControlServerComputePwmFromXyCallback(endpoint) (void) 0
#define emberAfPluginColorControlServerComputePwmFromHsvCallback(endpoint) (void) 0
#define emberAfPluginColorControlServerComputePwmFromTempCallback(endpoint) (void) 0

/**
* @brief Macro that copies the token value from non-volatile storage into a RAM
* location. This macro can only be used with tokens that are defined using
Expand Down

0 comments on commit d06daa2

Please sign in to comment.