Button Interface Callbacks
Functions |
|
void | emberAfPluginButtonInterfaceButton0PressedShortCallback (uint16_t timePressedMs) |
Called when Button 0 is pressed short.
|
|
void | emberAfPluginButtonInterfaceButton1PressedShortCallback (uint16_t timePressedMs) |
Called when Button 1 is pressed short.
|
|
void | emberAfPluginButtonInterfaceButton0PressedLongCallback (uint16_t timePressedMs, bool pressedAtReset) |
Called when Button 0 is pressed long.
|
|
void | emberAfPluginButtonInterfaceButton1PressedLongCallback (uint16_t timePressedMs, bool pressedAtReset) |
Called when Button 1 is pressed long.
|
|
void | emberAfPluginButtonInterfaceButton0PressingCallback (void) |
Called while Button 0 is pressed.
|
|
void | emberAfPluginButtonInterfaceButton1PressingCallback (void) |
Called while Button 1 is pressed.
|
|
void | emberAfPluginButtonInterfaceButton0LowCallback (void) |
Called when Button 0 goes low.
|
|
void | emberAfPluginButtonInterfaceButton0HighCallback (void) |
Called when Button 0 goes high.
|
|
void | emberAfPluginButtonInterfaceButton1LowCallback (void) |
Called when Button 1 goes low.
|
|
void | emberAfPluginButtonInterfaceButton1HighCallback (void) |
Called when Button 1 goes high.
|
Detailed Description
These callbacks are contributed by the Button Interface plugin.
Function Documentation
◆ emberAfPluginButtonInterfaceButton0HighCallback()
void emberAfPluginButtonInterfaceButton0HighCallback | ( | void |
|
) |
Called when Button 0 goes high.
This function is called when the GPIO tied to button zero goes high
◆ emberAfPluginButtonInterfaceButton0LowCallback()
void emberAfPluginButtonInterfaceButton0LowCallback | ( | void |
|
) |
Called when Button 0 goes low.
This function is called when the GPIO tied to button zero goes low
◆ emberAfPluginButtonInterfaceButton0PressedLongCallback()
void emberAfPluginButtonInterfaceButton0PressedLongCallback | ( | uint16_t |
timePressedMs,
|
bool |
pressedAtReset
|
||
) |
Called when Button 0 is pressed long.
- Parameters
-
timePressedMs
Amount of time button 0 was pressed. pressedAtReset
Was the button pressed at startup.
◆ emberAfPluginButtonInterfaceButton0PressedShortCallback()
void emberAfPluginButtonInterfaceButton0PressedShortCallback | ( | uint16_t |
timePressedMs
|
) |
Called when Button 0 is pressed short.
- Parameters
-
timePressedMs
Time (in ms) button 0 was pressed short
◆ emberAfPluginButtonInterfaceButton0PressingCallback()
void emberAfPluginButtonInterfaceButton0PressingCallback | ( | void |
|
) |
Called while Button 0 is pressed.
This function is periodically called when button 0 is being pressed.
◆ emberAfPluginButtonInterfaceButton1HighCallback()
void emberAfPluginButtonInterfaceButton1HighCallback | ( | void |
|
) |
Called when Button 1 goes high.
This function is called when the GPIO tied to button one goes high
◆ emberAfPluginButtonInterfaceButton1LowCallback()
void emberAfPluginButtonInterfaceButton1LowCallback | ( | void |
|
) |
Called when Button 1 goes low.
This function is called when the GPIO tied to button one goes low
◆ emberAfPluginButtonInterfaceButton1PressedLongCallback()
void emberAfPluginButtonInterfaceButton1PressedLongCallback | ( | uint16_t |
timePressedMs,
|
bool |
pressedAtReset
|
||
) |
Called when Button 1 is pressed long.
- Parameters
-
timePressedMs
Amount of time button 1 was pressed. pressedAtReset
Was the button pressed at startup.
◆ emberAfPluginButtonInterfaceButton1PressedShortCallback()
void emberAfPluginButtonInterfaceButton1PressedShortCallback | ( | uint16_t |
timePressedMs
|
) |
Called when Button 1 is pressed short.
- Parameters
-
timePressedMs
Time (in ms) button 1 was pressed short
◆ emberAfPluginButtonInterfaceButton1PressingCallback()
void emberAfPluginButtonInterfaceButton1PressingCallback | ( | void |
|
) |
Called while Button 1 is pressed.
This function is periodically called when button 1 is being pressed.