39 #if DOXYGEN || SWAP_NEEDED 48 uint16_t swap16(uint16_t i)
60 uint32_t swap32(uint32_t i)
67 #if DOXYGEN || !__AVR__ 77 return (((uint16_t) p[1]) << 8) |
78 (((uint16_t) p[0]) << 0);
89 return (((uint32_t) p[3]) << 24) |
90 (((uint32_t) p[2]) << 16) |
91 (((uint32_t) p[1]) << 8) |
92 (((uint32_t) p[0]) << 0);
103 p[1] = (uint8_t) ((i & 0xff00) >> 8);
104 p[0] = (uint8_t) ((i & 0x00ff) >> 0);
115 p[3] = (uint8_t) ((i & 0xff000000) >> 24);
116 p[2] = (uint8_t) ((i & 0x00ff0000) >> 16);
117 p[1] = (uint8_t) ((i & 0x0000ff00) >> 8);
118 p[0] = (uint8_t) ((i & 0x000000ff) >> 0);
SD-Card Reader Bibliothek von Roland Riegel.
void write16(uint8_t *p, uint16_t i)
uint32_t read32(const uint8_t *p)
void write32(uint8_t *p, uint32_t i)
uint16_t read16(const uint8_t *p)