ucg_nodemcu_hal.h 344 B

1234567891011121314151617
  1. #ifndef _UCG_NODEMCU_HAL_H
  2. #define _UCG_NODEMCU_HAL_H
  3. #include "ucg.h"
  4. // extend standard ucg_t struct with info that's needed in the communication callbacks
  5. typedef struct {
  6. ucg_t ucg;
  7. void *hal;
  8. } ucg_nodemcu_t;
  9. int16_t ucg_com_nodemcu_hw_spi(ucg_t *ucg, int16_t msg, uint16_t arg, uint8_t *data);
  10. #endif /* _UCG_NODEMCU_HAL_H */