- improved PIN_MASK definitions; -implemented adc offset adjustment; - implemented startup checks for: factory flash setting, adc offset adjustment, motor offset adjustment; - implemented adc_offset CVs; - implemented CV_65 as indication for flash factory condition; -fixed core0.h
This commit is contained in:
1 parent
a6fa9ef249
commit
65250846f9
4 files changed
+128
-70
No files matched your search
@@ -9,7 +9,6 @@
|
||||
#include "CV.h"
|
||||
#include "pico/float.h"
|
||||
#define SIZE_BYTE_ARRAY 5
|
||||
#define SIZE_ACTIVE_FUNCTIONS 32
|
||||
#define PACKAGE_3_BYTES 0b11111111110000000000000000000000000001
|
||||
#define PACKAGE_MASK_3_BYTES 0b11111111111000000001000000001000000001
|
||||
#define PACKAGE_4_BYTES 0b11111111110000000000000000000000000000000000001
|
||||
@@ -24,24 +23,29 @@ const uint32_t clr_bit_arr[6] = {
|
||||
0b11100000000111111111111111111111, // Clear Bits 21-28 (F21-F28)
|
||||
0b00011111111111111111111111111111, // Clear Bits 29-31 (F29-F31)
|
||||
};
|
||||
int8_t check_for_package();
|
||||
void writeLastBit(bool bit) ;
|
||||
void bits_to_byte_array(int8_t number_of_bytes,uint8_t byte_array[]) ;
|
||||
uint16_t two_sigma(const uint16_t arr[], uint8_t length);
|
||||
void adc_offset_adjustment(uint8_t length);
|
||||
uint16_t m_pwm_find_offset(uint16_t level, uint8_t step, uint8_t delay, uint32_t threshold, bool direction);
|
||||
void m_pwm_offset_adjustment(uint8_t length);
|
||||
void acknowledge();
|
||||
void verify_cv_bit(uint16_t cv_address,bool bit_val, uint8_t bit_pos);
|
||||
void verify_cv_byte(uint16_t cv_address, uint8_t cv_data);
|
||||
void write_cv_byte(uint16_t cv_index, uint8_t cv_data);
|
||||
bool reset_package_check(uint8_t number_of_bytes,const uint8_t byte_array[]);
|
||||
void program_mode(uint8_t number_of_bytes, const uint8_t byte_array[]);
|
||||
uint32_t get_32bit_CV (uint16_t CV_start_index);
|
||||
uint16_t get_16bit_CV (uint16_t CV_start_index);
|
||||
void set_outputs(uint32_t active_functions);
|
||||
void update_active_functions(uint32_t byte, uint8_t clr_bit_ind) ;
|
||||
bool error_detection(int8_t number_of_bytes, const uint8_t byte_array[]) ;
|
||||
bool is_long_address(uint8_t number_of_bytes, const uint8_t byte_array[]) ;
|
||||
bool address_evaluation(uint8_t number_of_bytes,const uint8_t byte_array[]) ;
|
||||
void instruction_evaluation(uint8_t number_of_bytes,const uint8_t byte_array[]);
|
||||
bool reset_package_check(uint8_t number_of_bytes,const uint8_t byte_array[]);
|
||||
int8_t check_for_package();
|
||||
void writeLastBit(bool bit) ;
|
||||
void bits_to_byte_array(int8_t number_of_bytes,uint8_t byte_array[]) ;
|
||||
void evaluation();
|
||||
void track_signal_rise(unsigned int gpio, long unsigned int events);
|
||||
void track_signal_fall(unsigned int gpio, long unsigned int events);
|
||||
void evaluation();
|
||||
uint16_t find_offset(uint16_t level, uint8_t step, uint8_t delay, uint32_t threshold, bool direction);
|
||||
uint16_t two_sigma(const uint16_t arr[], uint8_t length);
|
||||
void setup_offsets(uint8_t length);
|
||||
void init_outputs();
|
||||
void cv_setup_check();
|
||||
Reference in new issue
Block a user