enocean 2.0.0.0
|
This file contains API for EnOcean Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | enocean_packet_t |
struct | enocean_t |
Click ctx object definition. More... | |
struct | enocean_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | enocean_hdl_t) (enocean_packet_t *, uint16_t *) |
typedef uint8_t | enocean_error_t |
Error type. | |
Functions | |
void | enocean_cfg_setup (enocean_cfg_t *cfg) |
Config Object Initialization function. | |
ENOCEAN_RETVAL | enocean_init (enocean_t *ctx, enocean_cfg_t *cfg) |
Initialization function. | |
void | enocean_set_rst_pin (enocean_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. | |
void | enocean_generic_write (enocean_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | enocean_generic_read (enocean_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | enocean_response_handler_set (enocean_t *ctx, enocean_hdl_t handler) |
Handler Set function. | |
uint8_t | enocean_send_packet (enocean_t *ctx, enocean_packet_t *packet) |
Packet Send function. | |
uint8_t | enocean_response_ready (enocean_t *ctx) |
Response Ready function. | |
void | enocean_uart_isr (enocean_t *ctx) |
UART Interrupt Routine function. | |
This file contains API for EnOcean Click driver.