z ysaito
/
APro_B2DTst_0_Can_Class
2018.07.26
Diff: i2cAccess.h
- Revision:
- 0:b3376afd10d8
diff -r 000000000000 -r b3376afd10d8 i2cAccess.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/i2cAccess.h Thu Jul 26 00:20:04 2018 +0000 @@ -0,0 +1,37 @@ +class i2cAccess +{ +private: + + +public: + + bool flg_motor_lock; + /* + 7: - + 6: + 5: LB transform reverse + 4: LB transform forward + 3: RF transform reverse + 2: RF transform forward + 1: winch motor reverse + 0: winch motor forward + */ + + int16_t sp_wdram_f; // motor speed + int16_t sp_wdram_r; // motor speed + int16_t sp_wcabl_f; // motor speed + int16_t sp_wcabl_r; // motor speed + + int16_t drop_ammount; // Winch drop ammount + + i2cAccess(); + bool i2c_read( int , const char* , int ); + bool i2c_write( int , const char* , int ); + int16_t i2cReadMotorCurrent( int32_t, int, int, int, int ); + int16_t i2cReadInformation( int32_t, int ); + bool i2cGetMotorCurrent( int32_t, int8_t, int8_t ); + bool i2cSetMotorThreshold( int32_t, int8_t, int8_t, int16_t ); + bool i2cClearMLCnt( int32_t ); + bool i2cReadParameters( int32_t ); + +}; \ No newline at end of file