Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
netx_drv_dio.h File Reference

Header file of DIO DRV module. More...

#include "netx_drv.h"
Include dependency graph for netx_drv_dio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DRV_DIO_HANDLE_T
 The handle of the driver. More...
 

Typedefs

typedef uint64_t DRV_DIO_MSK_T
 Type definition for the driver io channel mask. More...
 
typedef uint32_t DRV_DIO_ID_T
 Type definition for the driver io channel ids. More...
 

Enumerations

enum  DRV_DIO_LINE_E {
  DRV_DIO_LINE_NONE = 0x00000000ul,
  DRV_DIO_LINE_GPIO = 0x00000001ul,
  DRV_DIO_LINE_PIO = 0x00000002ul,
  DRV_DIO_LINE_MMIO = 0x00000003ul,
  DRV_DIO_LINE_HIF = 0x00000004ul,
  DRV_DIO_LINE_MAX = DRV_DIO_LINE_HIF
}
 
enum  DRV_DIO_MODE_E {
  DRV_DIO_MODE_READ = 0x00u,
  DRV_DIO_MODE_CAPTURE_CONT_RISING = 0x01u,
  DRV_DIO_MODE_CAPTURE_ONCE_RISING = 0x02u,
  DRV_DIO_MODE_CAPTURE_ONCE_HIGH = 0x03u,
  DRV_DIO_MODE_RESET = 0x04u,
  DRV_DIO_MODE_SET = 0x05u,
  DRV_DIO_MODE_LINE = 0x06u,
  DRV_DIO_MODE_PWM = 0x07u,
  DRV_DIO_MODE_BLINK = 0x08u,
  DRV_DIO_MODE_PWM2 = 0x0fu,
  DRV_DIO_MODE_CAPTURE_CONT_FALLING = 0x11u,
  DRV_DIO_MODE_CAPTURE_CONT_HIGH = 0x12u,
  DRV_DIO_MODE_CAPTURE_CONT_LOW = 0x13u
}
 The mode of the DIO. More...
 
enum  DRV_DIO_STATE_E {
  DRV_DIO_STATE_SET = 0x01u,
  DRV_DIO_STATE_RESET = 0x00u
}
 The state of the io port. More...
 
enum  DRV_DIO_CNTR_REF_E {
  DRV_DIO_CNTR_REF_0 = 0x00u,
  DRV_DIO_CNTR_REF_1 = 0x01u,
  DRV_DIO_CNTR_REF_2 = 0x02u,
  DRV_DIO_CNTR_REF_SYSTIME = 0x03u
}
 The counters chooseable as reference for the IOs. More...
 

Functions

void DRV_DIO_GPIO0_Callback (void)
 This is the callback of the GPIO 0 IRQ. More...
 
void DRV_DIO_GPIO1_Callback (void)
 This is the callback of the GPIO 1 IRQ. More...
 
void DRV_DIO_GPIO2_Callback (void)
 This is the callback of the GPIO 2 IRQ. More...
 
void DRV_DIO_GPIO3_Callback (void)
 This is the callback of the GPIO 3 IRQ. More...
 
void DRV_DIO_GPIO4_Callback (void)
 This is the callback of the GPIO 4 IRQ. More...
 
void DRV_DIO_GPIO5_Callback (void)
 This is the callback of the GPIO 5 IRQ. More...
 
void DRV_DIO_GPIO6_Callback (void)
 This is the callback of the GPIO 6 IRQ. More...
 
void DRV_DIO_GPIO7_Callback (void)
 This is the callback of the GPIO 7 IRQ. More...
 
void DRV_DIO_BOD_Callback (void)
 This is the callback of the BOD IRQ. More...
 
void DRV_DIO_HIFPIO_Callback (void)
 This is the callback of the HIFPIO IRQ. More...
 
void DRV_DIO_PIO_Callback (void)
 This is the callback of the PIO0 IRQ. More...
 

Detailed Description

Header file of DIO DRV module.

Revision
4538
Date
2018-11-22 17:26:55 +0100 (Do, 22 Nov 2018)
Note
Exclusion of Liability for this demo software: The following software is intended for and must only be used for reference and in an evaluation laboratory environment. It is provided without charge and is subject to alterations. There is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software "as is" without warranty of any kind, either expressed or implied. Please refer to the Agreement in README_DISCLAIMER.txt, provided together with this file! By installing or otherwise using the software, you accept the terms of this Agreement. If you do not agree to the terms of this Agreement, then do not install or use the Software!

Definition in file netx_drv_dio.h.