i2c_target.h 462 B

12345678910111213141516171819
  1. //This file is an interface for I2C communication between MSPM0G3507 (Controller) and MSPM0L1304 (Target)
  2. #ifndef MCU_SLAVE_INTERACE_H_
  3. #include <stdint.h>
  4. #include "ti/driverlib/dl_i2c.h"
  5. #include "ti_msp_dl_config.h"
  6. // Handles I2C command coming into Target MCU:
  7. typedef enum{
  8. CMD_SET_CURRENT= 0x05,
  9. CMD_GET_MEASUREMENT= 0x06,
  10. CMD_CELAR_ERR= 0x07
  11. }mcu_I2C_command;
  12. void initialize_target_address();
  13. void mcu_i2c_handle(I2C_Regs *i2c);
  14. #endif