![]() |
LibDriver MAX7219
2.0.0
MAX7219 full-featured driver
|
driver max7219 header file More...
#include <stdio.h>
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | max7219_cascade_s |
max7219 cascade structure definition More... | |
struct | max7219_handle_s |
max7219 handle structure definition More... | |
struct | max7219_info_s |
max7219 info structure definition More... | |
Macros | |
#define | MAX7219_MAX_CASCADE_SIZE 128 |
max7219 max cascade size definition More... | |
#define | DRIVER_MAX7219_LINK_INIT(HANDLE, STRUCTURE) memset(HANDLE, 0, sizeof(STRUCTURE)) |
initialize max7219_handle_t structure More... | |
#define | DRIVER_MAX7219_LINK_SPI_INIT(HANDLE, FUC) (HANDLE)->spi_init = FUC |
link spi_init function More... | |
#define | DRIVER_MAX7219_LINK_SPI_DEINIT(HANDLE, FUC) (HANDLE)->spi_deinit = FUC |
link spi_deinit function More... | |
#define | DRIVER_MAX7219_LINK_SPI_WRITE(HANDLE, FUC) (HANDLE)->spi_write = FUC |
link spi_write function More... | |
#define | DRIVER_MAX7219_LINK_SPI_WRITE_COMMAND(HANDLE, FUC) (HANDLE)->spi_write_cmd = FUC |
link spi_write_cmd function More... | |
#define | DRIVER_MAX7219_LINK_DELAY_MS(HANDLE, FUC) (HANDLE)->delay_ms = FUC |
link delay_ms function More... | |
#define | DRIVER_MAX7219_LINK_DEBUG_PRINT(HANDLE, FUC) (HANDLE)->debug_print = FUC |
link debug_print function More... | |
Typedefs | |
typedef struct max7219_cascade_s | max7219_cascade_t |
max7219 cascade structure definition More... | |
typedef struct max7219_handle_s | max7219_handle_t |
max7219 handle structure definition More... | |
typedef struct max7219_info_s | max7219_info_t |
max7219 info structure definition More... | |
Functions | |
uint8_t | max7219_info (max7219_info_t *info) |
get chip's information More... | |
uint8_t | max7219_init (max7219_handle_t *handle) |
initialize the chip More... | |
uint8_t | max7219_deinit (max7219_handle_t *handle) |
close the chip More... | |
uint8_t | max7219_set_display (max7219_handle_t *handle, max7219_digital_t digital, uint8_t data) |
set the display content More... | |
uint8_t | max7219_set_matrix (max7219_handle_t *handle, uint8_t matrix[8]) |
set the content matrix More... | |
uint8_t | max7219_set_decode (max7219_handle_t *handle, max7219_decode_t decode) |
set the decode mode More... | |
uint8_t | max7219_set_mode (max7219_handle_t *handle, max7219_mode_t mode) |
set the chip mode More... | |
uint8_t | max7219_set_display_test_mode (max7219_handle_t *handle, max7219_display_test_mode_t mode) |
set the display test mode More... | |
uint8_t | max7219_set_intensity (max7219_handle_t *handle, max7219_intensity_t intensity) |
set the display intensity More... | |
uint8_t | max7219_set_scan_limit (max7219_handle_t *handle, max7219_scan_limit_t limit) |
set the scan limit More... | |
uint8_t | max7219_set_cascade (max7219_handle_t *handle, max7219_cascade_t *cascade, uint16_t len) |
set the cascade data More... | |
uint8_t | max7219_set_reg (max7219_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
set the chip register More... | |
driver max7219 header file
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Date | Version | Author | Description |
---|---|---|---|
2021/03/22 | 2.0 | Shifeng Li | format the code |
2020/12/05 | 1.0 | Shifeng Li | first upload |
Definition in file driver_max7219.h.