Defines | Typedefs | Functions
bricklet_dual_button.h File Reference
#include "ip_connection.h"
Include dependency graph for bricklet_dual_button.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DUAL_BUTTON_BUTTON_STATE_PRESSED   0
#define DUAL_BUTTON_BUTTON_STATE_RELEASED   1
#define DUAL_BUTTON_CALLBACK_STATE_CHANGED   4
#define DUAL_BUTTON_DEVICE_IDENTIFIER   230
#define DUAL_BUTTON_FUNCTION_GET_BUTTON_STATE   3
#define DUAL_BUTTON_FUNCTION_GET_IDENTITY   255
#define DUAL_BUTTON_FUNCTION_GET_LED_STATE   2
#define DUAL_BUTTON_FUNCTION_SET_LED_STATE   1
#define DUAL_BUTTON_FUNCTION_SET_SELECTED_LED_STATE   5
#define DUAL_BUTTON_LED_LEFT   0
#define DUAL_BUTTON_LED_RIGHT   1
#define DUAL_BUTTON_LED_STATE_AUTO_TOGGLE_OFF   1
#define DUAL_BUTTON_LED_STATE_AUTO_TOGGLE_ON   0
#define DUAL_BUTTON_LED_STATE_OFF   3
#define DUAL_BUTTON_LED_STATE_ON   2

Typedefs

typedef Device DualButton

Functions

void dual_button_create (DualButton *dual_button, const char *uid, IPConnection *ipcon)
void dual_button_destroy (DualButton *dual_button)
int dual_button_get_api_version (DualButton *dual_button, uint8_t ret_api_version[3])
int dual_button_get_button_state (DualButton *dual_button, uint8_t *ret_button_l, uint8_t *ret_button_r)
int dual_button_get_identity (DualButton *dual_button, char ret_uid[8], char ret_connected_uid[8], char *ret_position, uint8_t ret_hardware_version[3], uint8_t ret_firmware_version[3], uint16_t *ret_device_identifier)
int dual_button_get_led_state (DualButton *dual_button, uint8_t *ret_led_l, uint8_t *ret_led_r)
int dual_button_get_response_expected (DualButton *dual_button, uint8_t function_id, bool *ret_response_expected)
void dual_button_register_callback (DualButton *dual_button, uint8_t id, void *callback, void *user_data)
int dual_button_set_led_state (DualButton *dual_button, uint8_t led_l, uint8_t led_r)
int dual_button_set_response_expected (DualButton *dual_button, uint8_t function_id, bool response_expected)
int dual_button_set_response_expected_all (DualButton *dual_button, bool response_expected)
int dual_button_set_selected_led_state (DualButton *dual_button, uint8_t led, uint8_t state)


tinkerforge_laser_transform
Author(s): M.Fischer
autogenerated on Thu Jun 6 2019 20:39:25