PAT9125 on K64F

Dependencies:   pat9125_mbed mbed

pat9125_mbed/pat9125_i2c.cpp

Committer:
pixus_mbed
Date:
2017-10-03
Revision:
0:411244c71423

File content as of revision 0:411244c71423:

#include "pat9125_i2c.h"

static pat9125_i2c *_self ;
static PinName _sda ;
static PinName _scl ;


pat9125_i2c::pat9125_i2c(PinName sda, PinName scl) : I2C(sda, scl) 
{
    _self = this ;
    _sda = sda ,
    _scl = scl ;
}

pat9125_i2c* pat9125_i2c::reset() 
{
   delete _self ;
   _self = new pat9125_i2c(_sda, _scl);
   return _self ;
}