samltouch 2.0.0.0
samltouch.h File Reference

This file contains API for SAML Touch 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  samltouch_state_t
 
struct  samltouch_t
 Click ctx object definition. More...
 
struct  samltouch_cfg_t
 Click configuration structure definition. More...
 

Macros

#define SAMLTOUCH_START_FRAME   0x55
 
#define SAMLTOUCH_END_FRAME   0xAA
 
#define SAMLTOUCH_MAP_MIKROBUS(cfg, mikrobus)
 
#define SAMLTOUCH_RETVAL   uint8_t
 
#define SAMLTOUCH_OK   0x00
 
#define SAMLTOUCH_INIT_ERROR   0xFF
 
#define DRV_RX_BUFFER_SIZE   1000
 
#define DRV_TX_BUFFER_SIZE   80
 

Typedefs

typedef uint8_t samltouch_error_t
 Error type.
 

Functions

void samltouch_cfg_setup (samltouch_cfg_t *cfg)
 Config Object Initialization function.
 
SAMLTOUCH_RETVAL samltouch_init (samltouch_t *ctx, samltouch_cfg_t *cfg)
 Initialization function.
 
void samltouch_generic_write (samltouch_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t samltouch_generic_read (samltouch_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void samltouch_parser (char *data_in, samltouch_state_t *state)
 Generic parser function.
 

Detailed Description

This file contains API for SAML Touch Click driver.