ARMEBS4  revision-26.06.2015
Data Structures | Macros | Enumerations | Functions
bus.h File Reference

bus abstraction More...

#include <stdint.h>
#include <string.h>
#include "heivs/error.h"
#include "heivs/config.h"
Include dependency graph for bus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  heivs_bus_var_t
 Variable part of the bus description. More...
 
struct  heivs_bus_t
 Bus handler. More...
 

Macros

#define BUS_PARANOIA
 

Enumerations

enum  heivs_bus_state_t {
  BUS_NOINIT,
  BUS_INACTIVE,
  BUS_ACTIVE,
  BUS_SUSPENDED
}
 State of the bus. More...
 

Functions

status_e bus_init (const struct heivs_bus_t *bus)
 initialize the bus More...
 
status_e bus_get (const struct heivs_bus_t *bus)
 Get exclusive access to the bus. More...
 
status_e bus_release (const struct heivs_bus_t *bus)
 Release exclusive access to the bus. More...
 
status_e bus_suspend (const struct heivs_bus_t *bus)
 Suspend the bus (low power mode) More...
 
status_e bus_resume (const struct heivs_bus_t *bus)
 Resume the bus (from low power mode) More...
 
status_e bus_read (const struct heivs_bus_t *bus, uint32_t address, void *data, size_t len, size_t *rlen)
 Resume the bus (from low power mode) More...
 
status_e bus_write (const struct heivs_bus_t *bus, uint32_t address, const void *data, size_t len)
 Write data to the bus. More...
 
status_e bus_writeread (const struct heivs_bus_t *bus, uint32_t address, const void *src, size_t src_len, void *dst, size_t dst_len, size_t *rlen)
 Combined write and read data. More...
 

Detailed Description

bus abstraction

Author
marc dot pignat at hevs dot ch

Definition in file bus.h.