- use int instead of bool

This commit is contained in:
Sascha Ittner
2019-03-18 12:49:53 +01:00
parent 4386244114
commit 375aef3c91
7 changed files with 11 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ typedef struct {
hal_bit_t *on_home_neg;
hal_bit_t *on_home_pos;
bool do_init;
int do_init;
int raw_shift;
uint32_t raw_mask;
@@ -53,6 +53,6 @@ typedef struct {
} lcec_class_enc_data_t;
int class_enc_init(struct lcec_slave *slave, lcec_class_enc_data_t *hal_data, int raw_bits, const char *pfx);
void class_enc_update(lcec_class_enc_data_t *hal_data, uint64_t pprev, double scale, uint32_t raw, uint32_t ext_latch_raw, bool ext_latch_ena);
void class_enc_update(lcec_class_enc_data_t *hal_data, uint64_t pprev, double scale, uint32_t raw, uint32_t ext_latch_raw, int ext_latch_ena);
#endif