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. | |
COUNTER_RETVAL | counter_init (counter_t *ctx, counter_cfg_t *cfg) |
Initialization function. | |
void | counter_default_cfg (counter_t *ctx) |
Click Default Configuration function. | |
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. | |
void | counter_write_mdr0 (counter_t *ctx, uint8_t settings) |
Writes data into MDR0. | |
void | counter_write_mdr1 (counter_t *ctx, uint8_t settings) |
Writes data into MDR1. | |
void | counter_write_dtr (counter_t *ctx, uint8_t *buffer) |
Writes data into DTR. | |
void | counter_load_cntr (counter_t *ctx) |
Loads CNTR from DTR. | |
void | counter_load_otr (counter_t *ctx) |
Loads OTR from CNTR. | |
uint8_t | counter_read_mdr0 (counter_t *ctx) |
Reads MDR0. | |
uint8_t | counter_read_mdr1 (counter_t *ctx) |
Reads MDR1. | |
int32_t | counter_read_otr (counter_t *ctx) |
Reads OTR. | |
int32_t | counter_read_cntr (counter_t *ctx) |
Reads CNTR. | |
int32_t | counter_read_dtr (counter_t *ctx) |
Reads DTR. | |
uint8_t | counter_read_str (counter_t *ctx) |
Reads STR. | |
void | counter_clear_mrd0 (counter_t *ctx) |
Clears MDR0. | |
void | counter_clead_mrd1 (counter_t *ctx) |
Clears MDR1. | |
void | counter_clear_cntr (counter_t *ctx) |
Clears CNTR. | |
void | counter_clear_str (counter_t *ctx) |
Clears STR. | |
void | counter_initialisation (counter_t *ctx) |
Initialisation of click board with default settings. | |
void | counter_init_advanced (counter_t *ctx, uint8_t mdr0_set, uint8_t mdr1_set) |
Initialisation of click board with specific settings. | |
void | counter_enable (counter_t *ctx) |
Enables counting ( Software mode ) | |
void | counter_disable (counter_t *ctx) |
Disables counting ( Software mode ) | |
void | counter_chip_enable (counter_t *ctx) |
Enables counting ( Hardware mode ) | |
void | counter_chip_disable (counter_t *ctx) |
Disables counting ( Hardware mode ) | |
uint8_t | get_int_state (counter_t *ctx) |
Function for get int-pin state. | |
This file contains API for Counter Click driver.