Header for MePort.cpp module.
More...
#include <Arduino.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <util/delay.h>
#include <stdint.h>
#include <stdlib.h>
#include "MeConfig.h"
Go to the source code of this file.
|
|
#define | NC (0) |
| |
|
#define | PORT_1 (0x01) |
| |
|
#define | PORT_2 (0x02) |
| |
|
#define | PORT_3 (0x03) |
| |
|
#define | PORT_4 (0x04) |
| |
|
#define | PORT_5 (0x05) |
| |
|
#define | PORT_6 (0x06) |
| |
|
#define | PORT_7 (0x07) |
| |
|
#define | PORT_8 (0x08) |
| |
|
#define | PORT_9 (0x09) |
| |
|
#define | PORT_10 (0x0a) |
| |
|
#define | M1 (0x09) |
| |
|
#define | M2 (0x0a) |
| |
|
#define | PORT_11 (0x0b) |
| |
|
#define | PORT_12 (0x0c) |
| |
|
#define | PORT_13 (0x0d) |
| |
|
#define | PORT_14 (0x0e) |
| |
|
#define | PORT_15 (0x0f) |
| |
|
#define | PORT_16 (0x10) |
| |
|
#define | SLOT1 (1) |
| |
|
#define | SLOT2 (2) |
| |
|
#define | SLOT3 (3) |
| |
|
#define | SLOT4 (4) |
| |
|
#define | SLOT_1 SLOT1 |
| |
|
#define | SLOT_2 SLOT2 |
| |
|
#define | SLOT_3 SLOT3 |
| |
|
#define | SLOT_4 SLOT4 |
| |
|
#define | FALSE (0) |
| |
|
#define | TRUE (1) |
| |
Header for MePort.cpp module.
- Author
- MakeBlock
- Version
- V1.0.3
- Date
- 2016/09/20
- Copyright
- This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
- Open Source Licensing GPL V2
- This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
- Description
- This file is a drive for MakeBlock rj25 port.
- Method List:
- uint8_t MePort::getSlot()
- uint8_t MePort::getSlot()
- bool MePort::dRead1(uint8_t mode)
- bool MePort::dRead2(uint8_t mode)
- bool MePort::dpRead1(void)
- bool MePort::dpRead1(void)
- void MePort::dWrite1(bool value)
- void MePort::dWrite2(bool value)
- int16_t MePort::aRead1()
- int16_t MePort::aRead2()
- void MePort::aWrite1(int16_t value)
- void MePort::aWrite2(int16_t value)
- void MePort::reset(uint8_t port)
- void MePort::reset(uint8_t port, uint8_t slot)
- uint8_t MePort::pin1()
- uint8_t MePort::pin2()
- uint8_t MePort::pin()
- uint8_t MePort::pin(uint8_t port, uint8_t slot)
- History:
`<Author>` `<Time>` `<Version>` `<Descr>`
Mark Yan 2015/09/01 1.0.0 Rebuild the old lib.
Lawrence 2015/09/09 1.0.1 Add a input parameter of function dRead1 and dRead2.
Scott wang 2016/09/18 1.0.2 Add the PORT[15].
Scott 2016/09/20 1.0.3 Add the PORT[16].