Skip to content
Snippets Groups Projects
Select Git revision
  • a13422fe2b044b26b667f4e045ce8cfedd6ec647
  • master default protected
  • dither_on_off_disabled
  • yocto
  • pypcc2
  • pypcc3
  • 2020-12-07-the_only_working_copy
  • v2.1
  • v2.0
  • v1.0
  • v0.9
  • Working-RCU_ADC,ID
  • 2020-12-11-Holiday_Season_release
13 results

i2c.h

Blame
  • kruger's avatar
    Paulus Kruger authored
    a13422fe
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    i2c.h 444 B
    #ifndef I2C_H
    #define I2C_H
    #include "../structs.h"
    #include "drvbase.h"
    class c_i2c : public drvbase {
        public:
        c_i2c(const t_driver config1);
    
        bool I2Csend(int addr,int reg,int len,t_buffer* data,int direction);
    
        bool I2Csend_reg(int addr,int reg,int len,t_buffer* data);
        bool I2Cget_reg(int addr,int reg,int len,t_buffer* data);
        bool I2Csend_noreg(int addr,int len,t_buffer* data);
        private:
        int file;
    };
    #endif