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_t |
Wirepas Click context object. More... | |
struct | wirepas_cfg_t |
Wirepas Click configuration 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. More... | |
err_t | wirepas_init (wirepas_t *ctx, wirepas_cfg_t *cfg) |
Wirepas initialization function. More... | |
void | wirepas_default_cfg (wirepas_t *ctx) |
Wirepas default configuration function. More... | |
err_t | wirepas_generic_write (wirepas_t *ctx, uint8_t *data_in, uint16_t len) |
Wirepas data writing function. More... | |
err_t | wirepas_generic_read (wirepas_t *ctx, uint8_t *data_out, uint16_t len) |
Wirepas data reading function. More... | |
uint8_t | wirepas_get_din_state (wirepas_t *ctx) |
Wirepas get DIN state function. More... | |
void | wirepas_set_rst (wirepas_t *ctx, uint8_t pin_state) |
Wirepas set RST pin state function. More... | |
void | wirepas_hw_reset (wirepas_t *ctx) |
Wirepas hardware reset function. More... | |
err_t | wirepas_send_command (wirepas_t *ctx, uint8_t primitive_id, uint8_t frame_id, uint8_t payload_length, uint8_t *payload) |
Wirepas send command function. More... | |
err_t | wirepas_write_csap_attribute (wirepas_t *ctx, uint8_t frame_id, uint16_t attribute_id, uint8_t attribute_len, uint8_t *attribute_val) |
Wirepas write CSAP attribute function. More... | |
err_t | wirepas_read_csap_attribute (wirepas_t *ctx, uint8_t frame_id, uint16_t attribute_id, uint8_t *attribute_len, uint8_t *attribute_val) |
Wirepas read CSAP attribute function. More... | |
err_t | wirepas_set_node_address (wirepas_t *ctx, uint8_t frame_id, uint32_t address) |
Wirepas set node address function. More... | |
err_t | wirepas_set_net_address (wirepas_t *ctx, uint8_t frame_id, uint32_t net_address) |
Wirepas set net address function. More... | |
err_t | wirepas_poll_indication (wirepas_t *ctx, uint8_t frame_id, uint8_t *rx_data, uint8_t *data_rdy) |
Wirepas poll indication function. More... | |
err_t | wirepas_send_data (wirepas_t *ctx, uint8_t frame_id, uint16_t pduid, uint8_t source_endpoint, uint32_t destination_addr, uint8_t destination_endpoint, uint8_t tx_op, uint8_t apdu_length, uint8_t *apdu) |
Wirepas send data function. More... | |
This file contains API for Wirepas Click Driver.