1-Wire and ENS210 driver stack
Macros | Functions
DS2485_port_maxim.c File Reference

Platform-specific interface used to drive the DS2485 over I2C in the original Maxim environment. More...

#include <stdint.h>
#include <string.h>
#include "i2c.h"
#include "mxc_delay.h"
#include "mxc_sys.h"
#include "tmr.h"
#include "mxc_config.h"
#include "DS2485.h"
Include dependency graph for DS2485_port_maxim.c:

Go to the source code of this file.

Macros

#define I2C_MASTER   MXC_I2C0
 
#define I2C_MASTER_IDX   0
 
#define I2C_SLAVE_ADDR   (DS2485_I2C_7BIT_ADDRESS << 1)
 

Functions

int DS2485_ExecuteCommand (const uint8_t *packet, int packetSize, int delay_uSec, uint8_t *response, int responseSize)
 Platform-specific I2C command interface implemented in DS2485_port_xxxx.c Returns 'error' (0 if completed OK) */.
 

Detailed Description

Platform-specific interface used to drive the DS2485 over I2C in the original Maxim environment.

Update history
18-May-2023 Dave Nadler Isolated platform-dependent code in this source file.
Note
This implementation is not used in the SensorBox/Vario application.

Definition in file DS2485_port_maxim.c.