fiberopt 2.0.0.0
fiberopt.h File Reference

This file contains API for Fiber Opt 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  fiberopt_t
 Click ctx object definition. More...
 
struct  fiberopt_cfg_t
 Click configuration structure definition. More...
 

Macros

#define FIBEROPT_MAP_MIKROBUS(cfg, mikrobus)
 
#define FIBEROPT_OK   0
 
#define FIBEROPT_ERROR   -1
 
#define FIBEROPT_DRV_TX_BUFFER_SIZE   100
 
#define FIBEROPT_DRV_RX_BUFFER_SIZE   300
 

Functions

void fiberopt_cfg_setup (fiberopt_cfg_t *cfg)
 Config Object Initialization function.
 
err_t fiberopt_init (fiberopt_t *ctx, fiberopt_cfg_t *cfg)
 Initialization function.
 
err_t fiberopt_generic_write (fiberopt_t *ctx, uint8_t *data_buf, uint16_t len)
 Generic write function.
 
err_t fiberopt_generic_read (fiberopt_t *ctx, uint8_t *data_buf, uint16_t len)
 Generic read function.
 

Detailed Description

This file contains API for Fiber Opt Click driver.