GPIO_NXP_Arduino
1.1.0
GPIO device operation sample code for Arduino
Loading...
Searching...
No Matches
src
PORT.h
1
8
#ifndef ARDUINO_GPIO_NXP_ARD_PORT_H
9
#define ARDUINO_GPIO_NXP_ARD_PORT_H
10
11
#include <GPIO_NXP.h>
12
19
class
PORT
{
20
public
:
27
PORT
(
GPIO_base
& gpio,
int
port_num, uint8_t _mask = 0x00 );
28
35
void
config
( uint8_t
config
);
36
void
set( access_word wd, uint8_t value );
37
40
PORT
&
operator=
( uint8_t v );
41
PORT
&
operator=
(
PORT
& rhs );
42
45
operator
int();
46
47
private
:
48
GPIO_base
& dev;
49
int
pn;
50
public
:
55
uint8_t
mask
;
56
};
57
58
class
GPIO_PORT
:
public
PORT
{
59
public
:
60
using
PORT::operator=;
61
GPIO_PORT
(
GPIO_base
& gpio,
int
port_num, uint8_t _mask = 0x00 );
62
};
63
64
#endif
// ARDUINO_GPIO_NXP_ARD_PORT_H
GPIO_PORT
Definition
PORT.h:58
GPIO_base
Definition
GPIO_NXP.h:45
PORT
Definition
PORT.h:19
PORT::config
void config(uint8_t config)
Definition
PORT.cpp:8
PORT::mask
uint8_t mask
Definition
PORT.h:55
PORT::operator=
PORT & operator=(uint8_t v)
Definition
PORT.cpp:18
PORT::PORT
PORT(GPIO_base &gpio, int port_num, uint8_t _mask=0x00)
Definition
PORT.cpp:3
Generated by
1.10.0