c8x8y 2.0.0.0
c8x8y.h File Reference

This file contains API for 8x8 Y Click Driver. More...

#include "drv_digital_out.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  c8x8y_t
 8x8 Y Click context object. More...
 
struct  c8x8y_cfg_t
 8x8 Y Click configuration object. More...
 

Macros

#define C8X8Y_DECODE_MODE_REG   0x09
 8x8 Y register.
 
#define C8X8Y_INTENSITY_REG   0x0A
 
#define C8X8Y_SCAN_LIMIT_REG   0x0B
 
#define C8X8Y_SHUTDOWN_REG   0x0C
 
#define C8X8Y_DISPLAY_TEST_REG   0x0F
 
#define C8X8Y_NO_DECODE   0x00
 8x8 Y Decode-Mode register.
 
#define C8X8Y_DECODE_DIGIT_0   0x01
 
#define C8X8Y_DECODE_DIGIT_3_0   0x0F
 
#define C8X8Y_DECODE_DIGIT_7   0xFF
 
#define C8X8Y_INTENSITY_1   0x00
 8x8 Y intensity format register.
 
#define C8X8Y_INTENSITY_3   0x01
 
#define C8X8Y_INTENSITY_5   0x02
 
#define C8X8Y_INTENSITY_7   0x03
 
#define C8X8Y_INTENSITY_9   0x04
 
#define C8X8Y_INTENSITY_11   0x05
 
#define C8X8Y_INTENSITY_13   0x06
 
#define C8X8Y_INTENSITY_15   0x07
 
#define C8X8Y_INTENSITY_17   0x08
 
#define C8X8Y_INTENSITY_19   0x09
 
#define C8X8Y_INTENSITY_21   0x0A
 
#define C8X8Y_INTENSITY_23   0x0B
 
#define C8X8Y_INTENSITY_25   0x0C
 
#define C8X8Y_INTENSITY_27   0x0D
 
#define C8X8Y_INTENSITY_29   0x0E
 
#define C8X8Y_INTENSITY_31   0x0F
 
#define C8X8Y_DISPLAY_DIGIT_0   0x00
 8x8 Y Scan-limit register.
 
#define C8X8Y_DISPLAY_DIGIT_0_1   0x01
 
#define C8X8Y_DISPLAY_DIGIT_0_2   0x02
 
#define C8X8Y_DISPLAY_DIGIT_0_3   0x03
 
#define C8X8Y_DISPLAY_DIGIT_0_4   0x04
 
#define C8X8Y_DISPLAY_DIGIT_0_5   0x05
 
#define C8X8Y_DISPLAY_DIGIT_0_6   0x06
 
#define C8X8Y_DISPLAY_DIGIT_0_7   0x07
 
#define C8X8Y_SHUTDOWN_MODE   0x00
 8x8 Y shutdown register register.
 
#define C8X8Y_NORMAL_OPERATION   0x01
 
#define C8X8Y_DISPLAY_NORMAL_OPERATION   0x00
 
#define C8X8Y_DISPLAY_TEST_MODE   0X01
 
#define C8X8Y_SPEED_FAST   3
 8x8 Y scroll speed setting.
 
#define C8X8Y_SPEED_MEDIUM   2
 
#define C8X8Y_SPEED_SLOW   1
 
#define C8X8Y_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  c8x8y_return_value_t { C8X8Y_OK = 0 , C8X8Y_ERROR = -1 }
 8x8 Y Click return value data. More...
 

Functions

void c8x8y_cfg_setup (c8x8y_cfg_t *cfg)
 8x8 Y configuration object setup function.
 
err_t c8x8y_init (c8x8y_t *ctx, c8x8y_cfg_t *cfg)
 8x8 Y initialization function.
 
void c8x8y_default_cfg (c8x8y_t *ctx)
 8x8 Y default configuration function.
 
void c8x8y_write_cmd (c8x8y_t *ctx, uint8_t cmd, uint8_t tx_data)
 8x8 Y data writing function.
 
void c8x8y_display_refresh (c8x8y_t *ctx)
 8x8 Y function for refresh display.
 
void c8x8y_set_speed_scroll (c8x8y_t *ctx, uint8_t speed)
 8x8 Y scroll setting function.
 
void c8x8y_display_string (c8x8y_t *ctx, char *p_array)
 8x8 Y function for displaying scrolling string.
 
void c8x8y_display_byte (c8x8y_t *ctx, char tx_byte)
 8x8 Y function for displaying one character.
 
void c8x8y_display_image (c8x8y_t *ctx, uint8_t *p_image)
 8x8 Y function for displaying image.
 

Detailed Description

This file contains API for 8x8 Y Click Driver.

Enumeration Type Documentation

◆ c8x8y_return_value_t

8x8 Y Click return value data.

Predefined enum values for driver return values.

Enumerator
C8X8Y_OK 
C8X8Y_ERROR