Skip to content

Implement stayActive for I2C on other HALs #40

@lonnie-souder-ii

Description

@lonnie-souder-ii

The MMA8452Q Accelerometer module expects an I2C transaction to stay active (i.e. not send the stop bit) in order to read from a register. Reading occurs in 2 transactions:

  1. Write transaction where the data byte is the address of the register you want to read, and stayActive = 1 (the processor will not send a stop bit)
  2. Read transaction where stayActive = 0 (send stop bit after this)

This functionality has been added to i2c.c but it has only been implemented in hal_i2c.c for the MSP430F5529. In order to use the Accelerometer module, this functionality will have to be added to hal_i2c.c for every processor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions