Rev 522 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 522 | Rev 861 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | volatile I2C_Bus_t* I2CBus(I2C_TypeDef* I2Cx); |
42 | volatile I2C_Bus_t* I2CBus(I2C_TypeDef* I2Cx); |
Line 43... | Line 43... | ||
43 | 43 | ||
44 | // initialize the I2C bus |
44 | // initialize the I2C bus |
45 | void I2CBus_Init(I2C_TypeDef* I2Cx); |
45 | void I2CBus_Init(I2C_TypeDef* I2Cx); |
- | 46 | // deinitialize the I2C bus |
|
- | 47 | void I2CBus_StateReset(I2C_TypeDef* I2Cx); |
|
46 | // deinitialize the I2C bus |
48 | |
47 | void I2CBus_Deinit(I2C_TypeDef* I2Cx); |
49 | void I2CBus_Deinit(I2C_TypeDef* I2Cx); |
48 | // try to allocate the I2C_Buffer within the timeout limit |
50 | // try to allocate the I2C_Buffer within the timeout limit |
49 | // returns 1 on success |
51 | // returns 1 on success |
50 | u8 I2CBus_LockBuffer(I2C_TypeDef* I2Cx, u32 timeout); |
52 | u8 I2CBus_LockBuffer(I2C_TypeDef* I2Cx, u32 timeout); |