Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

Private functions of the application layer of the push button task. More...

+ Collaboration diagram for Private Functions:

Functions

volatile uint16_t appPushButton_EventButtonDown (void)
 Push button event raised at the "pressed" transition. More...
 
volatile uint16_t appPushButton_EventButtonUp (void)
 Push button event raised at the "not pressed" transition. More...
 
volatile uint16_t appPushButton_EventButtonPressed (void)
 Push button event raised at the "is pressed" detection. More...
 
volatile uint16_t appPushButton_EventButtonLongPress (void)
 Push button event raised at the "is long pressed" detection. More...
 

Detailed Description

Private functions of the application layer of the push button task.

The private functions of the push button application layer are used to configure the generic push button device driver.

Function Documentation

◆ appPushButton_EventButtonDown()

volatile uint16_t appPushButton_EventButtonDown ( void  )

Push button event raised at the "pressed" transition.

Parameters
void
Returns
unsigned integer (0=failure, 1=success)

This function is called when the push button detects a transition event from 'not being pressed' to 'being pressed'. Enabling this interrupt requires to declare the function pointer to this function in the push button data object event_btn_down data field. If this data field remains uninitialized or is set to NULL, this even is disabled.

Definition at line 135 of file app_push_button.c.

+ Here is the caller graph for this function:

◆ appPushButton_EventButtonLongPress()

volatile uint16_t appPushButton_EventButtonLongPress ( void  )

Push button event raised at the "is long pressed" detection.

Parameters
void
Returns
unsigned int (0=failure, 1=success)

This function is called after the push button event PRESSED has been detected and the Long Press Delay has expired without detecting a Button Up event. Enabling this interrupt requires to declare the function pointer to this function in the push button data object event_long_press data field. If this data field remains uninitialized or is set to NULL, this even is disabled.

Definition at line 201 of file app_push_button.c.

+ Here is the caller graph for this function:

◆ appPushButton_EventButtonPressed()

volatile uint16_t appPushButton_EventButtonPressed ( void  )

Push button event raised at the "is pressed" detection.

Parameters
void
Returns
unsigned int (0=failure, 1=success)

This function is called after the push button detects a transition event from 'not being pressed' to 'being pressed'. Enabling this interrupt requires to declare the function pointer to this function in the push button data object event_btn_pressed data field. If this data field remains uninitialized or is set to NULL, this even is disabled.

Definition at line 179 of file app_push_button.c.

◆ appPushButton_EventButtonUp()

volatile uint16_t appPushButton_EventButtonUp ( void  )

Push button event raised at the "not pressed" transition.

Parameters
void
Returns
unsigned int (0=failure, 1=success)

This function is called when the push button detects a transition event from 'being pressed' to 'not being pressed'. Enabling this interrupt requires to declare the function pointer to this function in the push button data object event_btn_up data field. If this data field remains uninitialized or is set to NULL, this even is disabled.

Definition at line 157 of file app_push_button.c.

+ Here is the caller graph for this function: