wirepas 2.1.0.0
|
This file contains API for Wirepas 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 | wirepas_frame_t |
Wirepas Click frame data object. More... | |
struct | wirepas_t |
Wirepas Click context object. More... | |
struct | wirepas_cfg_t |
Wirepas Click configuration object. More... | |
struct | wirepas_sink_data |
Wirepas Click sink data object. More... | |
Enumerations | |
enum | wirepas_return_value_t { WIREPAS_OK = 0 , WIREPAS_DATA_RDY = 1 , WIREPAS_ERROR = -1 } |
Wirepas Click return value data. More... | |
Functions | |
void | wirepas_cfg_setup (wirepas_cfg_t *cfg) |
Wirepas configuration object setup function. | |
err_t | wirepas_init (wirepas_t *ctx, wirepas_cfg_t *cfg) |
Wirepas initialization function. | |
void | wirepas_default_cfg (wirepas_t *ctx) |
Wirepas default configuration function. | |
err_t | wirepas_generic_write (wirepas_t *ctx, uint8_t *data_in, uint16_t len) |
Wirepas data writing function. | |
err_t | wirepas_generic_read (wirepas_t *ctx, uint8_t *data_out, uint16_t len) |
Wirepas data reading function. | |
uint8_t | wirepas_get_din_state (wirepas_t *ctx) |
Wirepas get DIN state function. | |
void | wirepas_set_rst (wirepas_t *ctx, uint8_t pin_state) |
Wirepas set RST pin state function. | |
void | wirepas_hw_reset (wirepas_t *ctx) |
Wirepas hardware reset function. | |
err_t | wirepas_send_command (wirepas_t *ctx, uint8_t primitive_id, uint8_t payload_length, uint8_t *payload) |
Wirepas send command function. | |
err_t | wirepas_send_ack (wirepas_t *ctx, uint8_t primitive_id, uint8_t frame_id, uint8_t result) |
Wirepas send ack function. | |
err_t | wirepas_write_csap_attribute (wirepas_t *ctx, uint16_t attribute_id, uint8_t attribute_len, uint8_t *attribute_val) |
Wirepas write CSAP attribute function. | |
err_t | wirepas_read_csap_attribute (wirepas_t *ctx, uint16_t attribute_id, uint8_t *attribute_len, uint8_t *attribute_val) |
Wirepas read CSAP attribute function. | |
err_t | wirepas_set_node_address (wirepas_t *ctx, uint32_t address) |
Wirepas set node address function. | |
err_t | wirepas_set_net_address (wirepas_t *ctx, uint32_t net_address) |
Wirepas set net address function. | |
err_t | wirepas_read_frame (wirepas_t *ctx, wirepas_frame_t *frame) |
Wirepas read frame function. | |
err_t | wirepas_send_data (wirepas_t *ctx, wirepas_sink_data sink_data, uint8_t tx_op, uint8_t apdu_length, uint8_t *apdu) |
Wirepas send data function. | |
This file contains API for Wirepas Click Driver.