Embedded Port Pins Library - part of internal porting files. More...
#include "port/avr8/eppl_avr8_mapinfunc.h"
Go to the source code of this file.
Macros | |
#define | EPPL_avr8_mapInMaskedPins(temp, pos, pin, mask) EPPL_avr8_LRSH((uint8_t)((uint8_t)(temp) & (uint8_t)((mask)<<EPPL_PINNR(pin))), pos, EPPL_PINNR(pin)) |
Mask selected part and move it to selected position. More... | |
#define | EPPL_avr8_mapInFromOnePort(pout, port, temp, direct, pins...) EPPL_LC(eppl_avr8_mapInFromOnePort, EPPL_COUNTARGS(pins))(pout, port, temp, direct, pins) |
Macro for mapping data from physical inputs. More... | |
#define | EPPL_avr8_generateMapInFromOnePort(repeatcntd, pins...) |
Mapping data to variable from one port. More... | |
Group of macros for mapping in bits that are near each other in the port | |
Simple macros for mapping single bits. The number postfix in macro name points how many bits there are one after another to map out. | |
#define | EPPL_avr8_mapInTempPinsNear1(pout, temp, direct, pos, pin) |
Single bit mapping. More... | |
#define | EPPL_avr8_mapInTempPinsNear2(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0x03) |
#define | EPPL_avr8_mapInTempPinsNear3(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0x07) |
#define | EPPL_avr8_mapInTempPinsNear4(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0x0f) |
#define | EPPL_avr8_mapInTempPinsNear5(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0x1f) |
#define | EPPL_avr8_mapInTempPinsNear6(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0x3f) |
#define | EPPL_avr8_mapInTempPinsNear7(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0x7f) |
#define | EPPL_avr8_mapInTempPinsNear8(pout, temp, direct, pos, pin) *(pout) |= EPPL_avr8_mapInMaskedPins(temp, pos, pin, 0xff) |
Functions | |
Mapping functions | |
Functions for mapping value to pins. This functions takes value and list of pins for in mapping. Do not call it directly. Use EPPL_avr8_mapInFromOnePort macro, that counts number of pins for mapping and calls right function. | |
static void | eppl_avr8_mapInFromOnePort1 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort2 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort3 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2, eppl_pin_t pin3) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort4 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2, eppl_pin_t pin3, eppl_pin_t pin4) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort5 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2, eppl_pin_t pin3, eppl_pin_t pin4, eppl_pin_t pin5) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort6 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2, eppl_pin_t pin3, eppl_pin_t pin4, eppl_pin_t pin5, eppl_pin_t pin6) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort7 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2, eppl_pin_t pin3, eppl_pin_t pin4, eppl_pin_t pin5, eppl_pin_t pin6, eppl_pin_t pin7) __attribute__((always_inline)) |
static void | eppl_avr8_mapInFromOnePort8 (uint8_t *pout, uint8_t port, uint8_t temp, uint8_t direct, eppl_pin_t pin1, eppl_pin_t pin2, eppl_pin_t pin3, eppl_pin_t pin4, eppl_pin_t pin5, eppl_pin_t pin6, eppl_pin_t pin7, eppl_pin_t pin8) __attribute__((always_inline)) |
Embedded Port Pins Library - part of internal porting files.