c3gsara  2.0.0.0
Data Structures | Macros | Typedefs | Functions
c3gsara.h File Reference

This file contains API for 3G SARA 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  c3gsara_t
 Click ctx object definition. More...
 
struct  c3gsara_cfg_t
 Click configuration structure definition. More...
 

Macros

#define C3GSARA_MAP_MIKROBUS(cfg, mikrobus)
 
#define C3GSARA_RETVAL   uint8_t
 
#define C3GSARA_OK   0x00
 
#define C3GSARA_INIT_ERROR   0xFF
 
#define DRV_RX_BUFFER_SIZE   500
 

Typedefs

typedef uint8_t c3gsara_error_t
 Error type. More...
 

Functions

void c3gsara_cfg_setup (c3gsara_cfg_t *cfg)
 Config Object Initialization function. More...
 
C3GSARA_RETVAL c3gsara_init (c3gsara_t *ctx, c3gsara_cfg_t *cfg)
 Initialization function. More...
 
void c3gsara_module_power (c3gsara_t *ctx, uint8_t power_state)
 Power module. More...
 
void c3gsara_generic_write (c3gsara_t *ctx, char *data_buf, uint16_t len)
 Generic write function. More...
 
int32_t c3gsara_generic_read (c3gsara_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function. More...
 
void c3gsara_send_command (c3gsara_t *ctx, char *command)
 Send command. More...
 

Detailed Description

This file contains API for 3G SARA Click driver.