no-OS
Macros | Functions | Variables
maxim_i2c.c File Reference

Implementation of max32660 I2C driver. More...

#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "i2c.h"
#include "no_os_error.h"
#include "no_os_util.h"
#include "no_os_alloc.h"
#include "maxim_i2c.h"
#include "mxc_errors.h"
#include "max32650.h"
Include dependency graph for maxim_i2c.c:

Macros

#define I2C_MASTER_MODE   1
 

Functions

void I2C0_IRQHandler (void)
 I2C0 interrupt handler. More...
 
void I2C1_IRQHandler (void)
 I2C1 interrupt handler. More...
 

Variables

const struct no_os_i2c_platform_ops max_i2c_ops
 MAXIM platform specific I2C platform ops structure. More...
 

Detailed Description

Implementation of max32660 I2C driver.

Author
Andrei Drimbarean (andre.nosp@m.i.dr.nosp@m.imbar.nosp@m.ean@.nosp@m.analo.nosp@m.g.co.nosp@m.m)
Ciprian Regus (cipri.nosp@m.an.r.nosp@m.egus@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2022(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ I2C_MASTER_MODE

#define I2C_MASTER_MODE   1

Function Documentation

◆ I2C0_IRQHandler()

void I2C0_IRQHandler ( void  )

I2C0 interrupt handler.

Returns
void

◆ I2C1_IRQHandler()

void I2C1_IRQHandler ( void  )

I2C1 interrupt handler.

Returns
void

Variable Documentation

◆ max_i2c_ops

const struct no_os_i2c_platform_ops max_i2c_ops
Initial value:
= {
.i2c_ops_init = &max_i2c_init,
.i2c_ops_write = &max_i2c_write,
.i2c_ops_read = &max_i2c_read,
.i2c_ops_remove = &max_i2c_remove
}

MAXIM platform specific I2C platform ops structure.

MAXIM specific I2C platform ops structure.