18#ifndef neorv32_onewire_h
19#define neorv32_onewire_h
29typedef volatile struct __attribute__((packed,aligned(4))) {
35#define NEORV32_ONEWIRE ((neorv32_onewire_t*) (NEORV32_ONEWIRE_BASE))
int neorv32_onewire_busy(void)
Definition neorv32_onewire.c:130
void neorv32_onewire_read_byte(void)
Definition neorv32_onewire.c:234
int neorv32_onewire_sense(void)
Definition neorv32_onewire.c:107
int neorv32_onewire_setup(uint32_t t_base)
Definition neorv32_onewire.c:43
void neorv32_onewire_write_byte(uint8_t byte)
Definition neorv32_onewire.c:265
void neorv32_onewire_reset(void)
Definition neorv32_onewire.c:147
int neorv32_onewire_reset_get_presence(void)
Definition neorv32_onewire.c:161
void neorv32_onewire_write_bit(uint8_t bit)
Definition neorv32_onewire.c:214
uint8_t neorv32_onewire_read_byte_get(void)
Definition neorv32_onewire.c:251
void neorv32_onewire_write_bit_blocking(uint8_t bit)
Definition neorv32_onewire.c:327
uint8_t neorv32_onewire_read_byte_blocking(void)
Definition neorv32_onewire.c:344
void neorv32_onewire_disable(void)
Definition neorv32_onewire.c:96
int neorv32_onewire_available(void)
Definition neorv32_onewire.c:26
uint8_t neorv32_onewire_read_bit_get(void)
Definition neorv32_onewire.c:195
void neorv32_onewire_read_bit(void)
Definition neorv32_onewire.c:178
void neorv32_onewire_write_byte_blocking(uint8_t byte)
Definition neorv32_onewire.c:364
uint8_t neorv32_onewire_read_bit_blocking(void)
Definition neorv32_onewire.c:307
NEORV32_ONEWIRE_CTRL_enum
Definition neorv32_onewire.h:38
@ ONEWIRE_CTRL_CLKDIV6
Definition neorv32_onewire.h:48
@ ONEWIRE_CTRL_CLKDIV4
Definition neorv32_onewire.h:46
@ ONEWIRE_CTRL_CLKDIV5
Definition neorv32_onewire.h:47
@ ONEWIRE_CTRL_TRIG_BIT
Definition neorv32_onewire.h:51
@ ONEWIRE_CTRL_CLKDIV7
Definition neorv32_onewire.h:49
@ ONEWIRE_CTRL_PRESENCE
Definition neorv32_onewire.h:55
@ ONEWIRE_CTRL_TRIG_RST
Definition neorv32_onewire.h:50
@ ONEWIRE_CTRL_BUSY
Definition neorv32_onewire.h:56
@ ONEWIRE_CTRL_CLKDIV3
Definition neorv32_onewire.h:45
@ ONEWIRE_CTRL_EN
Definition neorv32_onewire.h:39
@ ONEWIRE_CTRL_PRSC0
Definition neorv32_onewire.h:40
@ ONEWIRE_CTRL_CLKDIV0
Definition neorv32_onewire.h:42
@ ONEWIRE_CTRL_TRIG_BYTE
Definition neorv32_onewire.h:52
@ ONEWIRE_CTRL_CLKDIV2
Definition neorv32_onewire.h:44
@ ONEWIRE_CTRL_PRSC1
Definition neorv32_onewire.h:41
@ ONEWIRE_CTRL_SENSE
Definition neorv32_onewire.h:54
@ ONEWIRE_CTRL_CLKDIV1
Definition neorv32_onewire.h:43
void neorv32_onewire_enable(void)
Definition neorv32_onewire.c:87
NEORV32_ONEWIRE_DATA_enum
Definition neorv32_onewire.h:60
@ ONEWIRE_DATA_LSB
Definition neorv32_onewire.h:61
@ ONEWIRE_DATA_MSB
Definition neorv32_onewire.h:62
int neorv32_onewire_reset_blocking(void)
Definition neorv32_onewire.c:287
Definition neorv32_onewire.h:29
uint32_t DATA
Definition neorv32_onewire.h:31
uint32_t CTRL
Definition neorv32_onewire.h:30