ata6571 2.0.0.0
|
This file contains API for ATA6571 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 | ata6571_t |
ATA6571 Click context object. More... | |
struct | ata6571_cfg_t |
ATA6571 Click configuration object. More... | |
Macros | |
#define | ATA6571_OPERATING_MODE_SLEEP 0x00 |
ATA6571 operating mode selection. | |
#define | ATA6571_OPERATING_MODE_STANDBY 0x01 |
#define | ATA6571_OPERATING_MODE_SILENT 0x02 |
#define | ATA6571_OPERATING_MODE_NORMAL 0x03 |
#define | ATA6571_PIN_STATE_LOW 0x00 |
ATA6571 pin state flags. | |
#define | ATA6571_PIN_STATE_HIGH 0x01 |
#define | DRV_BUFFER_SIZE 200 |
ATA6571 driver buffer size. | |
#define | ATA6571_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | ata6571_return_value_t { ATA6571_OK = 0 , ATA6571_ERROR = -1 } |
ATA6571 Click return value data. More... | |
Functions | |
void | ata6571_cfg_setup (ata6571_cfg_t *cfg) |
ATA6571 configuration object setup function. | |
err_t | ata6571_init (ata6571_t *ctx, ata6571_cfg_t *cfg) |
ATA6571 initialization function. | |
err_t | ata6571_generic_write (ata6571_t *ctx, char *data_buf, uint16_t len) |
ATA6571 data writing function. | |
err_t | ata6571_generic_read (ata6571_t *ctx, char *data_buf, uint16_t max_len) |
ATA6571 data reading function. | |
void | ata6571_set_nstb_pin (ata6571_t *ctx, uint8_t state) |
ATA6571 set standby mode control function. | |
void | ata6571_set_en_pin (ata6571_t *ctx, uint8_t state) |
ATA6571 set power control function. | |
uint8_t | ata6571_get_nerr_pin (ata6571_t *ctx) |
ATA6571 get error and power-on indication output function. | |
void | ata6571_set_operating_mode (ata6571_t *ctx, uint8_t op_mode) |
ATA6571 set operating mode function. | |
This file contains API for ATA6571 Click Driver.