c1wireswitch 2.1.0.0
|
This file contains API for 1-Wire Switch Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_one_wire.h"
Go to the source code of this file.
Data Structures | |
struct | c1wireswitch_t |
1-Wire Switch Click context object. More... | |
struct | c1wireswitch_cfg_t |
1-Wire Switch Click configuration object. More... | |
Enumerations | |
enum | c1wireswitch_gpio_sel_t { C1WIRESWITCH_GPIO_0 , C1WIRESWITCH_GPIO_1 } |
1-Wire Switch Click gpio selector. More... | |
enum | c1wireswitch_return_value_t { C1WIRESWITCH_OK = 0 , C1WIRESWITCH_ERROR = -1 } |
1-Wire Switch Click return value data. More... | |
Functions | |
void | c1wireswitch_cfg_setup (c1wireswitch_cfg_t *cfg) |
1-Wire Switch configuration object setup function. | |
void | c1wireswitch_gpio_selection (c1wireswitch_cfg_t *cfg, c1wireswitch_gpio_sel_t gpio_sel) |
1-Wire Switch driver interface setup function. | |
err_t | c1wireswitch_init (c1wireswitch_t *ctx, c1wireswitch_cfg_t *cfg) |
1-Wire Switch initialization function. | |
err_t | c1wireswitch_default_cfg (c1wireswitch_t *ctx) |
1-Wire Switch default configuration function. | |
err_t | c1wireswitch_check_communication (c1wireswitch_t *ctx) |
1-Wire Switch check communication function. | |
err_t | c1wireswitch_select_device (c1wireswitch_t *ctx) |
1-Wire Switch select device function. | |
err_t | c1wireswitch_read_scratchpad (c1wireswitch_t *ctx, uint8_t *scratchpad, uint8_t scratchpad_len) |
1-Wire Switch read scratchpad function. | |
err_t | c1wireswitch_write_scratchpad (c1wireswitch_t *ctx, uint8_t *scratchpad, uint8_t scratchpad_len) |
1-Wire Switch write scratchpad function. | |
err_t | c1wireswitch_write_pio (c1wireswitch_t *ctx, uint8_t state) |
1-Wire Switch write programmable I/O state function. | |
err_t | c1wireswitch_read_pio (c1wireswitch_t *ctx, uint8_t *state) |
1-Wire Switch read programmable I/O state function. | |
err_t | c1wireswitch_set_pio_state (c1wireswitch_t *ctx, uint8_t pio_a, uint8_t pio_b) |
1-Wire Switch write specific programmable I/O state function. | |
err_t | c1wireswitch_get_pio_state (c1wireswitch_t *ctx, uint8_t *pio_a, uint8_t *pio_b) |
1-Wire Switch read specific programmable I/O state function. | |
err_t | c1wireswitch_get_pio_latch_state (c1wireswitch_t *ctx, uint8_t *pio_a_latch, uint8_t *pio_b_latch) |
1-Wire Switch read programmable I/O latch state function. | |
This file contains API for 1-Wire Switch Click Driver.