NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
Loading...
Searching...
No Matches
neorv32_neoled.h
Go to the documentation of this file.
1// ================================================================================ //
2// The NEORV32 RISC-V Processor - https://github.com/stnolting/neorv32 //
3// Copyright (c) NEORV32 contributors. //
4// Copyright (c) 2020 - 2025 Stephan Nolting. All rights reserved. //
5// Licensed under the BSD-3-Clause license, see LICENSE for details. //
6// SPDX-License-Identifier: BSD-3-Clause //
7// ================================================================================ //
8
13
14#ifndef NEORV32_NEOLED_H
15#define NEORV32_NEOLED_H
16
17#include <stdint.h>
18
19
20/**********************************************************************/
25typedef volatile struct __attribute__((packed,aligned(4))) {
26 uint32_t CTRL;
27 uint32_t DATA24;
28 uint32_t DATA32;
29 uint32_t STROBE;
31
33#define NEORV32_NEOLED ((neorv32_neoled_t*) (NEORV32_NEOLED_BASE))
34
53
54
55
56/**********************************************************************/
61void neorv32_neoled_enable(void);
62void neorv32_neoled_disable(void);
63void neorv32_neoled_setup(uint32_t prsc, uint32_t t_total, uint32_t t_high_zero, uint32_t t_high_one);
67void neorv32_neoled_write32_blocking(uint32_t data);
68void neorv32_neoled_write32_nonblocking(uint32_t data);
69void neorv32_neoled_write24_blocking(uint32_t data);
70void neorv32_neoled_write24_nonblocking(uint32_t data);
74int neorv32_neoled_busy(void);
76
77
78#endif // NEORV32_NEOLED_H
int neorv32_neoled_busy(void)
Definition neorv32_neoled.c:237
int neorv32_neoled_get_fifo_depth(void)
Definition neorv32_neoled.c:203
void neorv32_neoled_setup_ws2812(void)
Definition neorv32_neoled.c:76
void neorv32_neoled_write24_blocking(uint32_t data)
Definition neorv32_neoled.c:179
int neorv32_neoled_available(void)
Definition neorv32_neoled.c:22
void neorv32_neoled_setup(uint32_t prsc, uint32_t t_total, uint32_t t_high_zero, uint32_t t_high_one)
Definition neorv32_neoled.c:55
void neorv32_neoled_strobe_blocking(void)
Definition neorv32_neoled.c:133
int neorv32_neoled_fifo_full(void)
Definition neorv32_neoled.c:215
void neorv32_neoled_enable(void)
Definition neorv32_neoled.c:31
void neorv32_neoled_disable(void)
Definition neorv32_neoled.c:40
void neorv32_neoled_write24_nonblocking(uint32_t data)
Definition neorv32_neoled.c:192
NEORV32_NEOLED_CTRL_enum
Definition neorv32_neoled.h:36
@ NEOLED_CTRL_T_0H_MSB
Definition neorv32_neoled.h:43
@ NEOLED_CTRL_FIFO_MSB
Definition neorv32_neoled.h:48
@ NEOLED_CTRL_TX_EMPTY
Definition neorv32_neoled.h:49
@ NEOLED_CTRL_T_1H_LSB
Definition neorv32_neoled.h:44
@ NEOLED_CTRL_TX_BUSY
Definition neorv32_neoled.h:51
@ NEOLED_CTRL_FIFO_LSB
Definition neorv32_neoled.h:47
@ NEOLED_CTRL_PRSC_MSB
Definition neorv32_neoled.h:39
@ NEOLED_CTRL_T_TOT_LSB
Definition neorv32_neoled.h:40
@ NEOLED_CTRL_T_0H_LSB
Definition neorv32_neoled.h:42
@ NEOLED_CTRL_T_1H_MSB
Definition neorv32_neoled.h:45
@ NEOLED_CTRL_TX_FULL
Definition neorv32_neoled.h:50
@ NEOLED_CTRL_T_TOT_MSB
Definition neorv32_neoled.h:41
@ NEOLED_CTRL_EN
Definition neorv32_neoled.h:37
@ NEOLED_CTRL_PRSC_LSB
Definition neorv32_neoled.h:38
void neorv32_neoled_strobe_nonblocking(void)
Definition neorv32_neoled.c:144
int neorv32_neoled_fifo_empty(void)
Definition neorv32_neoled.c:226
void neorv32_neoled_write32_nonblocking(uint32_t data)
Definition neorv32_neoled.c:168
void neorv32_neoled_write32_blocking(uint32_t data)
Definition neorv32_neoled.c:155
Definition neorv32_neoled.h:25
uint32_t STROBE
Definition neorv32_neoled.h:29
uint32_t DATA24
Definition neorv32_neoled.h:27
uint32_t DATA32
Definition neorv32_neoled.h:28
uint32_t CTRL
Definition neorv32_neoled.h:26