Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
netx_drv_def.h
Go to the documentation of this file.
1 /*!************************************************************************/
21 /* Define to prevent recursive inclusion -------------------------------------*/
22 #include "netx_drv.h"
23 #ifndef __NETX_DRV_DEF
24 #define __NETX_DRV_DEF
25 
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30 
35 #include <stddef.h>
36 
40 #define UNUSED(x) ((void)(x))
41 
48 typedef void (*DRV_CALLBACK_F)(void * pvDriverHandle, void * pvUserHandle);
49 
53 typedef enum DRV_STATUS_Etag
54 {
55  DRV_OK = 0U,
56  DRV_ERROR = -1,
57  DRV_BUSY = -2,
58  DRV_TOUT = -3,
59  DRV_NSUPP = -4,
60  DRV_NIMPL = -5,
62  DRV_LOCKED = -7,
65 
69 typedef enum
70 {
77 /* End of group generals */
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* __NETX_DRV_DEF */
enum DRV_STATUS_Etag * DRV_STATUS_EP
This file contains all the functions prototypes for the peripheral module driver. ...
void(* DRV_CALLBACK_F)(void *pvDriverHandle, void *pvUserHandle)
The definition of callbacks used in the driver.
Definition: netx_drv_def.h:48
DRV_STATUS_E
DRV Status structures definition.
Definition: netx_drv_def.h:53
DRV_OPERATION_MODE_E
Enumeration of the operation mode.
Definition: netx_drv_def.h:69