enocean4 2.0.0.0
|
This file contains API for EnOcean 4 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 | enocean4_packet_t |
struct | enocean4_t |
Click ctx object definition. More... | |
struct | enocean4_cfg_t |
Click configuration structure definition. More... | |
Typedefs | |
typedef void(* | enocean4_hdl_t) (enocean4_packet_t *, uint8_t *) |
typedef uint8_t | enocean4_error_t |
Error type. | |
Functions | |
void | enocean4_cfg_setup (enocean4_cfg_t *cfg) |
Config Object Initialization function. | |
ENOCEAN4_RETVAL | enocean4_init (enocean4_t *ctx, enocean4_cfg_t *cfg) |
Initialization function. | |
void | enocean4_set_rst_pin (enocean4_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. | |
void | enocean4_generic_write (enocean4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | enocean4_generic_read (enocean4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | enocean4_response_handler_set (enocean4_t *ctx, void(*handler)(enocean4_packet_t *, uint8_t *)) |
Handler Set function. | |
void | enocean4_uart_isr (enocean4_t *ctx) |
UART Interrupt Routine function. | |
uint8_t | enocean4_process (enocean4_t *ctx) |
Response Proccesing function. | |
uint8_t | enocean4_response_ready (enocean4_t *ctx) |
Response Ready Check function. | |
void | enocean4_reset (enocean4_t *ctx) |
Reset function. | |
uint8_t | enocean4_send_packet (enocean4_t *ctx, enocean4_packet_t *packet) |
Packet Send function. | |
This file contains API for EnOcean 4 Click driver.