libpruio  0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
pruio_prussdrv.h
Go to the documentation of this file.
1 
17 #ifndef _PRUSSDRV_H
18 #define _PRUSSDRV_H
19 
20 #include <sys/types.h>
21 
22 #if defined (__cplusplus)
23 extern "C" {
24 #endif
26 int32 prussdrv_open(uint32 host_interrupt);
36 #define prussdrv_pru_enable(N) prussdrv_pru_enable(N, 0)
39  uint32 wordoffset,
40  const uint32 *memarea,
41  uint32 bytelength);
43 int32 prussdrv_pruintc_init(const tpruss_intc_initdata *prussintc_init_data);
45 void prussdrv_map_extmem(void **address);
49 int32 prussdrv_map_prumem(uint32 pru_ram_id, void **address);
51 uint32 prussdrv_get_phys_addr(const void *address);
57 void prussdrv_pru_clear_event(uint32 host_interrupt, uint32 sysevent);
59 void prussdrv_exit(void);
60 
61 #if defined (__cplusplus)
62 }
63 #endif
64 #endif
unsigned int uint32
32 bit unsigned integer data type.
Definition: pruio.h:41
int int32
32 bit signed integer data type.
Definition: pruio.h:38
void prussdrv_pru_send_event(uint32 eventnum)
See prussdrv_pru_send_event(BYVAL_AS_UInt32 Event)
int32 prussdrv_pru_disable(uint32 prunum)
See prussdrv_pru_disable(BYVAL_AS_UInt32 PruId)
void prussdrv_map_extmem(void **address)
See prussdrv_map_extmem(BYVAL_AS_ANY_PTR_PTR Addr)
char * prussdrv_pru_resume(uint32 prunum)
See prussdrv_pru_resume(BYVAL_AS_UInt32 PruId)
#define prussdrv_pru_enable(N)
Macro for variadic parameter list.
void prussdrv_pru_clear_event(uint32 host_interrupt, uint32 sysevent)
See prussdrv_pru_clear_event(BYVAL_AS_UInt32 Irq, BYVAL_AS_UInt32 Event)
uint32 prussdrv_pru_wait_event(uint32 host_interrupt)
See prussdrv_pru_wait_event(BYVAL_AS_UInt32 Irq)
int32 prussdrv_pruintc_init(const tpruss_intc_initdata *prussintc_init_data)
See prussdrv_pruintc_init(BYVAL_AS_CONST_tpruss_intc_initdata_PTR DatIni)
void prussdrv_exit(void)
See prussdrv_exIt()
int32 prussdrv_pru_reset(uint32 prunum)
See prussdrv_pru_reset(BYVAL_AS_UInt32 PruId)
uint32 prussdrv_get_phys_addr(const void *address)
See prussdrv_get_phys_addr(BYVAL_AS_CONST_ANY_PTR Addr)
int32 prussdrv_open(uint32 host_interrupt)
See prussdrv_open(BYVAL_AS_UInt32 Irq)
int32 prussdrv_pru_write_memory(uint32 pru_ram_id, uint32 wordoffset, const uint32 *memarea, uint32 bytelength)
See prussdrv_pru_write_memory(BYVAL_AS_UInt32 RamId, BYVAL_AS_UInt32 Offs, BYVAL_AS_CONST_UInt32_PTR ...
uint32 prussdrv_extmem_size(void)
See prussdrv_extmem_sIze()
int32 prussdrv_map_prumem(uint32 pru_ram_id, void **address)
See prussdrv_map_prumem(BYVAL_AS_UInt32 RamId, BYVAL_AS_ANY_PTR_PTR Addr)
Init data structure for the interrupt controller setting.
Definition: pruio_intc.h:98