| 12345678910111213141516171819 |
- //This file is an interface for I2C communication between MSPM0G3507 (Controller) and MSPM0L1304 (Target)
- #ifndef MCU_SLAVE_INTERACE_H_
- #include <stdint.h>
- #include "ti/driverlib/dl_i2c.h"
- #include "ti_msp_dl_config.h"
- // Handles I2C command coming into Target MCU:
- typedef enum{
- CMD_SET_CURRENT= 0x05,
- CMD_GET_MEASUREMENT= 0x06,
- CMD_CELAR_ERR= 0x07
- }mcu_I2C_command;
- void initialize_target_address();
- void mcu_i2c_handle(I2C_Regs *i2c);
- #endif
|