iotexpresslink 2.1.0.0
iotexpresslink.h File Reference

This file contains API for IoT ExpressLink 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  iotexpresslink_t
 IoT ExpressLink Click context object. More...
 
struct  iotexpresslink_cfg_t
 IoT ExpressLink Click configuration object. More...
 

Macros

#define IOTEXPRESSLINK_CMD_AT   "AT"
 IoT ExpressLink AT commands list.
 
#define IOTEXPRESSLINK_CMD_CONNECT   "AT+CONNECT"
 
#define IOTEXPRESSLINK_CMD_CONNECT_CHECK   "AT+CONNECT?"
 
#define IOTEXPRESSLINK_CMD_DISCONNECT   "AT+DISCONNECT"
 
#define IOTEXPRESSLINK_CMD_SLEEP   "AT+SLEEP"
 
#define IOTEXPRESSLINK_CMD_CONFMODE   "AT+CONFMODE"
 
#define IOTEXPRESSLINK_CMD_RESET   "AT+RESET"
 
#define IOTEXPRESSLINK_CMD_FACTORY_RESET   "AT+FACTORY_RESET"
 
#define IOTEXPRESSLINK_CMD_SEND   "AT+SEND"
 
#define IOTEXPRESSLINK_CMD_GET   "AT+GET"
 
#define IOTEXPRESSLINK_CMD_SUBSCRIBE   "AT+SUBSCRIBE"
 
#define IOTEXPRESSLINK_CMD_UNSUBSCRIBE   "AT+UNSUBSCRIBE"
 
#define IOTEXPRESSLINK_CMD_CONF   "AT+CONF"
 
#define IOTEXPRESSLINK_CMD_CONF_CHECK   "AT+CONF?"
 
#define IOTEXPRESSLINK_CMD_EVENT   "AT+EVENT?"
 
#define IOTEXPRESSLINK_CMD_TIME   "AT+TIME"
 
#define IOTEXPRESSLINK_CMD_WHERE   "AT+WHERE"
 
#define IOTEXPRESSLINK_CMD_SEPARATOR   " "
 
#define IOTEXPRESSLINK_CMD_SIGN_EQUAL   "="
 
#define IOTEXPRESSLINK_CONF_KEY_ABOUT   "About"
 IoT ExpressLink config key parameters list.
 
#define IOTEXPRESSLINK_CONF_KEY_VERSION   "Version"
 
#define IOTEXPRESSLINK_CONF_KEY_TECH_SPEC   "TechSpec"
 
#define IOTEXPRESSLINK_CONF_KEY_THING_NAME   "ThingName"
 
#define IOTEXPRESSLINK_CONF_KEY_CERTIFICATE   "Certificate"
 
#define IOTEXPRESSLINK_CONF_KEY_CUSTOM_NAME   "CustomName"
 
#define IOTEXPRESSLINK_CONF_KEY_ENDPOINT   "Endpoint"
 
#define IOTEXPRESSLINK_CONF_KEY_ROOT_CA   "RootCA"
 
#define IOTEXPRESSLINK_CONF_KEY_DEFENDER   "Defender"
 
#define IOTEXPRESSLINK_CONF_KEY_HOTA_CERTIFICATE   "HOTAcertificate"
 
#define IOTEXPRESSLINK_CONF_KEY_OTA_CERTIFICATE   "OTAcertificate"
 
#define IOTEXPRESSLINK_CONF_KEY_SSID   "SSID"
 
#define IOTEXPRESSLINK_CONF_KEY_PASSPHRASE   "Passphrase"
 
#define IOTEXPRESSLINK_CONF_KEY_APN   "APN"
 
#define IOTEXPRESSLINK_CONF_KEY_QOS   "QOS"
 
#define IOTEXPRESSLINK_CONF_KEY_TOPIC   "Topic"
 
#define IOTEXPRESSLINK_RSP_OK   "OK"
 IoT ExpressLink device response for AT commands.
 
#define IOTEXPRESSLINK_RSP_ERR   "ERR"
 
#define IOTEXPRESSLINK_TX_DRV_BUFFER_SIZE   300
 IoT ExpressLink driver buffer size.
 
#define IOTEXPRESSLINK_RX_DRV_BUFFER_SIZE   1000
 
#define IOTEXPRESSLINK_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  iotexpresslink_return_value_t {
  IOTEXPRESSLINK_OK = 0 , IOTEXPRESSLINK_ERROR = -1 , IOTEXPRESSLINK_ERROR_TIMEOUT = -2 , IOTEXPRESSLINK_ERROR_CMD = -3 ,
  IOTEXPRESSLINK_ERROR_UNKNOWN = -4
}
 IoT ExpressLink Click return value data. More...
 

Functions

void iotexpresslink_cfg_setup (iotexpresslink_cfg_t *cfg)
 IoT ExpressLink configuration object setup function.
 
err_t iotexpresslink_init (iotexpresslink_t *ctx, iotexpresslink_cfg_t *cfg)
 IoT ExpressLink initialization function.
 
err_t iotexpresslink_generic_write (iotexpresslink_t *ctx, uint8_t *data_in, uint16_t len)
 IoT ExpressLink data writing function.
 
err_t iotexpresslink_generic_read (iotexpresslink_t *ctx, uint8_t *data_out, uint16_t len)
 IoT ExpressLink data reading function.
 
void iotexpresslink_send_cmd (iotexpresslink_t *ctx, uint8_t *cmd)
 IoT ExpressLink send cmd function.
 
void iotexpresslink_enable_device (iotexpresslink_t *ctx)
 IoT ExpressLink enable device function.
 
void iotexpresslink_disable_device (iotexpresslink_t *ctx)
 IoT ExpressLink disable device function.
 
void iotexpresslink_reset_device (iotexpresslink_t *ctx)
 IoT ExpressLink reset device function.
 
uint8_t iotexpresslink_get_event_pin (iotexpresslink_t *ctx)
 IoT ExpressLink get event pin function.
 
uint8_t iotexpresslink_get_wake_pin (iotexpresslink_t *ctx)
 IoT ExpressLink get wake pin function.
 

Detailed Description

This file contains API for IoT ExpressLink Click Driver.

Enumeration Type Documentation

◆ iotexpresslink_return_value_t

IoT ExpressLink Click return value data.

Predefined enum values for driver return values.

Enumerator
IOTEXPRESSLINK_OK 
IOTEXPRESSLINK_ERROR 
IOTEXPRESSLINK_ERROR_TIMEOUT 
IOTEXPRESSLINK_ERROR_CMD 
IOTEXPRESSLINK_ERROR_UNKNOWN