c4dotmatrixr 2.0.0.0
c4dotmatrixr.h File Reference

This file contains API for c4Dot-matrix r Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"

Go to the source code of this file.

Data Structures

struct  c4dotmatrixr_t
 Click ctx object definition. More...
 
struct  c4dotmatrixr_cfg_t
 Click configuration structure definition. More...
 

Macros

#define C4DOTMATRIXR_MAP_MIKROBUS(cfg, mikrobus)
 
#define C4DOTMATRIXR_RETVAL   uint8_t
 
#define C4DOTMATRIXR_OK   0x00
 
#define C4DOTMATRIXR_INIT_ERROR   0xFF
 
#define C4DOT_IODIRA   0x00
 
#define C4DOT_IODIRB   0x01
 
#define C4DOT_IPOLA   0x02
 
#define C4DOT_IPOLB   0x03
 
#define C4DOT_GPINTENA   0x04
 
#define C4DOT_GPINTENB   0x05
 
#define C4DOT_DEFVALA   0x06
 
#define C4DOT_DEFVALB   0x07
 
#define C4DOT_INTCONA   0x08
 
#define C4DOT_INTCONB   0x09
 
#define C4DOT_IOCON   0x0A
 
#define C4DOT_GPPUA   0x0C
 
#define C4DOT_GPPUB   0x0D
 
#define C4DOT_INTFA   0x0E
 
#define C4DOT_INTFB   0x0F
 
#define C4DOT_INTCAPA   0x10
 
#define C4DOT_INTCAPB   0x11
 
#define C4DOT_GPIOA   0x12
 
#define C4DOT_GPIOB   0x13
 
#define C4DOT_OLATA   0x14
 
#define C4DOT_OLATB   0x15
 

Functions

void c4dotmatrixr_cfg_setup (c4dotmatrixr_cfg_t *cfg)
 Config Object Initialization function.
 
C4DOTMATRIXR_RETVAL c4dotmatrixr_init (c4dotmatrixr_t *ctx, c4dotmatrixr_cfg_t *cfg)
 Initialization function.
 
void c4dotmatrixr_default_cfg (c4dotmatrixr_t *ctx)
 Click Default Configuration function.
 
void c4dotmatrixr_generic_write (c4dotmatrixr_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void c4dotmatrixr_generic_read (c4dotmatrixr_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
void c4dot_write_char (c4dotmatrixr_t *ctx, uint8_t char_num, uint8_t char_value)
 4DotMatrix Char Write.
 
void c4dot_write_char0 (c4dotmatrixr_t *ctx, uint8_t char_value)
 4DotMatrix Char 0 Write.
 
void c4dot_write_char1 (c4dotmatrixr_t *ctx, uint8_t char_value)
 4DotMatrix Char 1 Write.
 
void c4dot_write_char2 (c4dotmatrixr_t *ctx, uint8_t char_value)
 4DotMatrix Char 2 Write.
 
void c4dot_write_char3 (c4dotmatrixr_t *ctx, uint8_t char_value)
 4DotMatrix Char 3 Write.
 
void c4dot_write_text (c4dotmatrixr_t *ctx, uint8_t *text_to_write)
 4DotMatrix Text Write.
 
void c4dot_write_int (c4dotmatrixr_t *ctx, int16_t int_to_write, uint8_t int_base)
 4DotMatrix Int Write.
 
void c4dot_write_int_bin (c4dotmatrixr_t *ctx, int16_t int_to_write)
 4DotMatrix Binary Int Write.
 
void c4dot_write_int_oct (c4dotmatrixr_t *ctx, int16_t int_to_write)
 4DotMatrix Octal Int Write.
 
void c4dot_write_int_dec (c4dotmatrixr_t *ctx, int16_t int_to_write)
 4DotMatrix Decimal Int Write.
 
void c4dot_write_int_hex (c4dotmatrixr_t *ctx, int16_t int_to_write)
 4DotMatrix Hexadecimal Int Write.
 
void c4dot_clear_display (c4dotmatrixr_t *ctx)
 4DotMatrix Display Clear.
 

Detailed Description

This file contains API for c4Dot-matrix r Click driver.