Microchip® Advanced Software Framework

s_pushb.h File Reference
#include "compiler.h"

Functions

bool b_pushb1_get_value (char *buf)
 Get a pushbutton current state. More...
 
bool b_pushb2_get_value (char *buf)
 Get a pushbutton current state. More...
 
bool b_pushb3_get_value (char *buf)
 Get a pushbutton current state. More...
 

bool b_pushb1_get_value ( char *  buf)

Get a pushbutton current state.

Parameters
bufchar buffer in which the push button state is stored.
Returns
true upon success, false if error.

References acpc_pushb_events, b_pushb1, gpio_get_pin_value(), PB1_POSITION, PUSHB_EVENT_PRESS, PUSHB_EVENT_RELEASE, and sprintf().

Referenced by device_full_custom_task().

bool b_pushb2_get_value ( char *  buf)

Get a pushbutton current state.

Parameters
bufchar buffer in which the push button state is stored.
Returns
true upon success, false if error.

References acpc_pushb_events, b_pushb2, gpio_get_pin_value(), PB2_POSITION, PUSHB_EVENT_PRESS, PUSHB_EVENT_RELEASE, and sprintf().

Referenced by device_full_custom_task().

bool b_pushb3_get_value ( char *  buf)

Get a pushbutton current state.

Parameters
bufchar buffer in which the push button state is stored.
Returns
true upon success, false if error.

References acpc_pushb_events, b_pushb3, gpio_get_pin_value(), PB3_POSITION, PUSHB_EVENT_PRESS, PUSHB_EVENT_RELEASE, and sprintf().