counter
2.0.0.0
|
This file contains API for Counter Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | counter_t |
Click ctx object definition. More... | |
struct | counter_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | counter_cfg_setup (counter_cfg_t *cfg) |
Config Object Initialization function. More... | |
COUNTER_RETVAL | counter_init (counter_t *ctx, counter_cfg_t *cfg) |
Initialization function. More... | |
void | counter_default_cfg (counter_t *ctx) |
Click Default Configuration function. More... | |
void | counter_generic_transfer (counter_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. More... | |
void | counter_write_mdr0 (counter_t *ctx, uint8_t settings) |
Writes data into MDR0. More... | |
void | counter_write_mdr1 (counter_t *ctx, uint8_t settings) |
Writes data into MDR1. More... | |
void | counter_write_dtr (counter_t *ctx, uint8_t buffer) |
Writes data into DTR. More... | |
void | counter_load_cntr (counter_t *ctx) |
Loads CNTR from DTR. More... | |
void | counter_load_otr (counter_t *ctx) |
Loads OTR from CNTR. More... | |
uint8_t | counter_read_mdr0 (counter_t *ctx) |
Reads MDR0. More... | |
uint8_t | counter_read_mdr1 (counter_t *ctx) |
Reads MDR1. More... | |
uint8_t | counter_read_otr (counter_t *ctx) |
Reads OTR. More... | |
uint8_t | counter_read_cntr (counter_t *ctx) |
Reads CNTR. More... | |
uint8_t | counter_read_str (counter_t *ctx) |
Reads STR. More... | |
void | counter_clear_mrd0 (counter_t *ctx) |
Clears MDR0. More... | |
void | counter_clead_mrd1 (counter_t *ctx) |
Clears MDR1. More... | |
void | counter_clear_cntr (counter_t *ctx) |
Clears CNTR. More... | |
void | counter_clear_str (counter_t *ctx) |
Clears STR. More... | |
void | counter_initialisation (counter_t *ctx) |
Initialisation of click board with default settings. More... | |
void | counter_init_advanced (counter_t *ctx, uint8_t mdr0_set, uint8_t mdr1_set) |
Initialisation of click board with specific settings. More... | |
void | counter_enable (counter_t *ctx) |
Enables counting ( Software mode ) More... | |
void | counter_disable (counter_t *ctx) |
Disables counting ( Software mode ) More... | |
void | counter_chip_enable (counter_t *ctx) |
Enables counting ( Hardware mode ) More... | |
void | counter_chip_disable (counter_t *ctx) |
Disables counting ( Hardware mode ) More... | |
uint8_t | get_int_state (counter_t *ctx) |
Function for get int-pin state. More... | |
This file contains API for Counter Click driver.