25#ifndef __ARCH_ARM_INCLUDE_CXD56XX_HOSTIF_H
26#define __ARCH_ARM_INCLUDE_CXD56XX_HOSTIF_H
37#include <nuttx/config.h>
46#define MAX_BUFFER_NUM 32
50#define HOSTIF_BUFF_ATTR_ADDR_OFFSET(n) (((n) & 0x3) << 4)
52#define HOSTIF_BUFF_ATTR_FIXLEN (0 << 2)
53#define HOSTIF_BUFF_ATTR_VARLEN (1 << 2)
54#define HOSTIF_BUFF_ATTR_WRITE (0 << 1)
55#define HOSTIF_BUFF_ATTR_READ (1 << 1)
87#if defined(__cplusplus)
88#define EXTERN extern "C"
int hostif_uninitialize(void)
int hostif_spiinitialize(struct hostif_spiconf_s *config)
#define MAX_BUFFER_NUM
Host interface maximum number of buffers.
Definition: hostif.h:46
int hostif_i2cinitialize(struct hostif_i2cconf_s *config)
Common buffer configuration.
Definition: hostif.h:65
uint16_t size
Definition: hostif.h:66
uint16_t flag
Definition: hostif.h:67
I2C buffer configuration.
Definition: hostif.h:73
int address
Definition: hostif.h:74
SPI buffer configuration.
Definition: hostif.h:81