libpruio  0.6.8
Fast and easy Digital/Analog Input/Output for Beaglebones
pruio_prussdrv.h File Reference

Header file for kernel drivers. More...

#include <sys/types.h>
Include dependency graph for pruio_prussdrv.h:

Go to the source code of this file.

Macros

#define prussdrv_pru_enable(N)   prussdrv_pru_enable(N, 0)
 Macro for variadic parameter list.
 

Functions

int32 prussdrv_open (uint32 host_interrupt)
 See prussdrv_open(BYVAL_AS_UInt32 Irq)
 
int32 prussdrv_pru_reset (uint32 prunum)
 See prussdrv_pru_reset(BYVAL_AS_UInt32 PruId)
 
char * prussdrv_pru_resume (uint32 prunum)
 See prussdrv_pru_resume(BYVAL_AS_UInt32 PruId)
 
int32 prussdrv_pru_disable (uint32 prunum)
 See prussdrv_pru_disable(BYVAL_AS_UInt32 PruId)
 
int32 prussdrv_pru_enable (uint32 prunum, uint32 pcnt)
 See prussdrv_pru_enable(BYVAL_AS_UInt32 PruId, BYVAL_AS_UInt32 PCnt)
 
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 Dat, BYVAL_AS_UInt32 Size)
 
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_map_extmem (void **address)
 See prussdrv_map_extmem(BYVAL_AS_ANY_PTR_PTR Addr)
 
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)
 
uint32 prussdrv_get_phys_addr (const void *address)
 See prussdrv_get_phys_addr(BYVAL_AS_CONST_ANY_PTR Addr)
 
uint32 prussdrv_pru_wait_event (uint32 host_interrupt)
 See prussdrv_pru_wait_event(BYVAL_AS_UInt32 Irq)
 
void prussdrv_pru_send_event (uint32 eventnum)
 See prussdrv_pru_send_event(BYVAL_AS_UInt32 Event)
 
void prussdrv_pru_clear_event (uint32 host_interrupt, uint32 sysevent)
 See prussdrv_pru_clear_event(BYVAL_AS_UInt32 Irq, BYVAL_AS_UInt32 Event)
 
void prussdrv_exit (void)
 See prussdrv_exIt()
 

Detailed Description

Header file for kernel drivers.

The header contains declarations to bind the user space part of the kernel drivers. Two loadable kernel modules are in use, named:

  • uio_pruss
  • libpruio

The first controls memory mapping and interrupt handling, the second supports pinmuxing and PWM features.

Since
0.6

Definition in file pruio_prussdrv.h.