#include "hardware/pio.h"
#include <assert.h>
#include <stddef.h>
#include "hardware/clocks.h"
#include "hardware/pio_instructions.h"
#include "hardware/structs/clocks.h"
#include "hx711_multi.h"
#include "util.h"
Go to the source code of this file.
◆ hx711_multi_reader_HZ
#define hx711_multi_reader_HZ 10000000 |
◆ hx711_multi_reader_offset_bitloop_in_pins_bit_count
#define hx711_multi_reader_offset_bitloop_in_pins_bit_count 9u |
◆ hx711_multi_reader_wrap
#define hx711_multi_reader_wrap 18 |
◆ hx711_multi_reader_wrap_target
#define hx711_multi_reader_wrap_target 3 |
◆ hx711_multi_pio_init()
Definition at line 89 of file hx711_multi_reader.pio.h.
91 assert(hxm->
_pio != NULL);
#define HX711_MULTI_CONVERSION_DONE_IRQ_NUM
PIO interrupt number which is set by the reader PIO State Machine when a conversion period ends....
#define HX711_MULTI_DATA_READY_IRQ_NUM
PIO interrupt number which is used between the awaiter and reader PIO State Machines to indicate when...
bool util_routable_pio_interrupt_num_is_valid(const uint pio_interrupt_num)
Check whether a PIO interrupt number is a valid routable interrupt number.
void util_pio_gpio_contiguous_init(PIO const pio, const uint base, const uint len)
Inits GPIO pins for PIO from base to base + len.
bool util_pio_interrupt_num_is_valid(const uint pio_interrupt_num)
Check whether a PIO interrupt number is valid.
References hx711_multi_t::_chips_len, hx711_multi_t::_clock_pin, hx711_multi_t::_data_pin_base, hx711_multi_t::_pio, HX711_MULTI_CONVERSION_DONE_IRQ_NUM, HX711_MULTI_DATA_READY_IRQ_NUM, util_pio_gpio_contiguous_init(), util_pio_interrupt_num_is_valid(), and util_routable_pio_interrupt_num_is_valid().
◆ hx711_multi_reader_program_get_default_config()
static pio_sm_config hx711_multi_reader_program_get_default_config |
( |
uint |
offset | ) |
|
|
inlinestatic |
◆ hx711_multi_reader_program_init()
◆ hx711_multi_reader_program
const struct pio_program hx711_multi_reader_program |
|
static |
Initial value:= {
.length = 19,
.origin = -1,
}
static const uint16_t hx711_multi_reader_program_instructions[]
Definition at line 22 of file hx711_multi_reader.pio.h.
◆ hx711_multi_reader_program_instructions
const uint16_t hx711_multi_reader_program_instructions[] |
|
static |
Initial value:= {
0xe020,
0x8080,
0x6020,
0xe057,
0x4060,
0x8000,
0x20c4,
0xc040,
0xe001,
0x4001,
0x8000,
0x1088,
0xc000,
0x9880,
0x6020,
0x1023,
0xa041,
0xe101,
0x1191,
}
Definition at line 22 of file hx711_multi_reader.pio.h.