mrfioc2  2.3.0
Public Member Functions | Public Attributes | List of all members
MRMGpio Class Reference

#include <mrmGpio.h>

Public Member Functions

 MRMGpio (EVRMRM &)
 
epicsUInt32 getDirection ()
 
void setDirection (epicsUInt32)
 
epicsUInt32 read ()
 
epicsUInt32 getOutput ()
 
void setOutput (epicsUInt32)
 

Public Attributes

epicsMutex lock_
 

Detailed Description

Definition at line 16 of file mrmGpio.h.

Constructor & Destructor Documentation

◆ MRMGpio()

MRMGpio::MRMGpio ( EVRMRM o)

Definition at line 11 of file mrmGpio.cpp.

11  : owner_(o)
12 {
13 }

Member Function Documentation

◆ getDirection()

epicsUInt32 MRMGpio::getDirection ( )

Definition at line 15 of file mrmGpio.cpp.

16 {
17  epicsUInt32 val = READ32(owner_.base, GPIODir);
18  return val;
19 }
#define READ32(base, offset)
Definition: mrfCommonIO.h:114
volatile unsigned char *const base
Definition: drvem.h:223

◆ getOutput()

epicsUInt32 MRMGpio::getOutput ( )

Definition at line 32 of file mrmGpio.cpp.

33 {
34  epicsUInt32 val = READ32(owner_.base, GPIOOut);
35  return val;
36 }
#define READ32(base, offset)
Definition: mrfCommonIO.h:114
volatile unsigned char *const base
Definition: drvem.h:223

◆ read()

epicsUInt32 MRMGpio::read ( )

Definition at line 26 of file mrmGpio.cpp.

27 {
28  epicsUInt32 val = READ32(owner_.base, GPIOIn);
29  return val;
30 }
#define READ32(base, offset)
Definition: mrfCommonIO.h:114
volatile unsigned char *const base
Definition: drvem.h:223

◆ setDirection()

void MRMGpio::setDirection ( epicsUInt32  val)

Definition at line 21 of file mrmGpio.cpp.

22 {
23  WRITE32(owner_.base, GPIODir, val);
24 }
volatile unsigned char *const base
Definition: drvem.h:223
#define WRITE32(base, offset, value)
Definition: mrfCommonIO.h:119

◆ setOutput()

void MRMGpio::setOutput ( epicsUInt32  val)

Definition at line 38 of file mrmGpio.cpp.

39 {
40  WRITE32(owner_.base, GPIOOut, val);
41 }
volatile unsigned char *const base
Definition: drvem.h:223
#define WRITE32(base, offset, value)
Definition: mrfCommonIO.h:119

Member Data Documentation

◆ lock_

epicsMutex MRMGpio::lock_

Definition at line 29 of file mrmGpio.h.


The documentation for this class was generated from the following files: