Macros | Définitions de type
Référence du fichier pgmspace.h
#include <inttypes.h>

Macros

#define PROGMEM
 
#define PGM_P   const char *
 
#define PSTR(str)   (str)
 
#define _SFR_BYTE(n)   (n)
 
#define memchr_P(s, c, n)   memchr((s), (c), (n))
 
#define memcmp_P(s1, s2, n)   memcmp((s1), (s2), (n))
 
#define memccpy_P(dest, src, c, n)   memccpy((dest), (src), (c), (n))
 
#define memcpy_P(dest, src, n)   memcpy((dest), (src), (n))
 
#define memmem_P(haystack, haystacklen, needle, needlelen)   memmem((haystack), (haystacklen), (needle), (needlelen))
 
#define memrchr_P(s, c, n)   memrchr((s), (c), (n))
 
#define strcat_P(dest, src)   strcat((dest), (src))
 
#define strchr_P(s, c)   strchr((s), (c))
 
#define strchrnul_P(s, c)   strchrnul((s), (c))
 
#define strcmp_P(a, b)   strcmp((a), (b))
 
#define strcpy_P(dest, src)   strcpy((dest), (src))
 
#define strcasecmp_P(s1, s2)   strcasecmp((s1), (s2))
 
#define strcasestr_P(haystack, needle)   strcasestr((haystack), (needle))
 
#define strcspn_P(s, accept)   strcspn((s), (accept))
 
#define strlcat_P(s1, s2, n)   strlcat((s1), (s2), (n))
 
#define strlcpy_P(s1, s2, n)   strlcpy((s1), (s2), (n))
 
#define strlen_P(a)   strlen((a))
 
#define strnlen_P(s, n)   strnlen((s), (n))
 
#define strncmp_P(s1, s2, n)   strncmp((s1), (s2), (n))
 
#define strncasecmp_P(s1, s2, n)   strncasecmp((s1), (s2), (n))
 
#define strncat_P(s1, s2, n)   strncat((s1), (s2), (n))
 
#define strncpy_P(s1, s2, n)   strncpy((s1), (s2), (n))
 
#define strpbrk_P(s, accept)   strpbrk((s), (accept))
 
#define strrchr_P(s, c)   strrchr((s), (c))
 
#define strsep_P(sp, delim)   strsep((sp), (delim))
 
#define strspn_P(s, accept)   strspn((s), (accept))
 
#define strstr_P(a, b)   strstr((a), (b))
 
#define strtok_P(s, delim)   strtok((s), (delim))
 
#define strtok_rP(s, delim, last)   strtok((s), (delim), (last))
 
#define strlen_PF(a)   strlen((a))
 
#define strnlen_PF(src, len)   strnlen((src), (len))
 
#define memcpy_PF(dest, src, len)   memcpy((dest), (src), (len))
 
#define strcpy_PF(dest, src)   strcpy((dest), (src))
 
#define strncpy_PF(dest, src, len)   strncpy((dest), (src), (len))
 
#define strcat_PF(dest, src)   strcat((dest), (src))
 
#define strlcat_PF(dest, src, len)   strlcat((dest), (src), (len))
 
#define strncat_PF(dest, src, len)   strncat((dest), (src), (len))
 
#define strcmp_PF(s1, s2)   strcmp((s1), (s2))
 
#define strncmp_PF(s1, s2, n)   strncmp((s1), (s2), (n))
 
#define strcasecmp_PF(s1, s2)   strcasecmp((s1), (s2))
 
#define strncasecmp_PF(s1, s2, n)   strncasecmp((s1), (s2), (n))
 
#define strstr_PF(s1, s2)   strstr((s1), (s2))
 
#define strlcpy_PF(dest, src, n)   strlcpy((dest), (src), (n))
 
#define memcmp_PF(s1, s2, n)   memcmp((s1), (s2), (n))
 
#define sprintf_P(s, f, ...)   sprintf((s), (f), __VA_ARGS__)
 
#define snprintf_P(s, f, ...)   snprintf((s), (f), __VA_ARGS__)
 
#define pgm_read_byte(addr)   (*(const unsigned char *)(addr))
 
#define pgm_read_word(addr)   (*(const unsigned short *)(addr))
 
#define pgm_read_dword(addr)   (*(const unsigned long *)(addr))
 
#define pgm_read_float(addr)   (*(const float *)(addr))
 
#define pgm_read_ptr(addr)   (*(const void **)(addr))
 
#define pgm_read_byte_near(addr)   pgm_read_byte(addr)
 
#define pgm_read_word_near(addr)   pgm_read_word(addr)
 
#define pgm_read_dword_near(addr)   pgm_read_dword(addr)
 
#define pgm_read_float_near(addr)   pgm_read_float(addr)
 
#define pgm_read_ptr_near(addr)   pgm_read_ptr(addr)
 
#define pgm_read_byte_far(addr)   pgm_read_byte(addr)
 
#define pgm_read_word_far(addr)   pgm_read_word(addr)
 
#define pgm_read_dword_far(addr)   pgm_read_dword(addr)
 
#define pgm_read_float_far(addr)   pgm_read_float(addr)
 
#define pgm_read_ptr_far(addr)   pgm_read_ptr(addr)
 
#define pgm_get_far_address(addr)   (&(addr))
 

Définitions de type

typedef void prog_void
 
typedef char prog_char
 
typedef unsigned char prog_uchar
 
typedef int8_t prog_int8_t
 
typedef uint8_t prog_uint8_t
 
typedef int16_t prog_int16_t
 
typedef uint16_t prog_uint16_t
 
typedef int32_t prog_int32_t
 
typedef uint32_t prog_uint32_t
 
typedef int64_t prog_int64_t
 
typedef uint64_t prog_uint64_t
 
typedef const void * int_farptr_t
 
typedef const void * uint_farptr_t
 

Documentation des macros

◆ _SFR_BYTE

#define _SFR_BYTE (   n)    (n)

◆ memccpy_P

#define memccpy_P (   dest,
  src,
  c,
 
)    memccpy((dest), (src), (c), (n))

◆ memchr_P

#define memchr_P (   s,
  c,
 
)    memchr((s), (c), (n))

◆ memcmp_P

#define memcmp_P (   s1,
  s2,
 
)    memcmp((s1), (s2), (n))

◆ memcmp_PF

#define memcmp_PF (   s1,
  s2,
 
)    memcmp((s1), (s2), (n))

◆ memcpy_P

#define memcpy_P (   dest,
  src,
 
)    memcpy((dest), (src), (n))

◆ memcpy_PF

#define memcpy_PF (   dest,
  src,
  len 
)    memcpy((dest), (src), (len))

◆ memmem_P

#define memmem_P (   haystack,
  haystacklen,
  needle,
  needlelen 
)    memmem((haystack), (haystacklen), (needle), (needlelen))

◆ memrchr_P

#define memrchr_P (   s,
  c,
 
)    memrchr((s), (c), (n))

◆ pgm_get_far_address

#define pgm_get_far_address (   addr)    (&(addr))

◆ PGM_P

#define PGM_P   const char *

◆ pgm_read_byte

#define pgm_read_byte (   addr)    (*(const unsigned char *)(addr))

◆ pgm_read_byte_far

#define pgm_read_byte_far (   addr)    pgm_read_byte(addr)

◆ pgm_read_byte_near

#define pgm_read_byte_near (   addr)    pgm_read_byte(addr)

◆ pgm_read_dword

#define pgm_read_dword (   addr)    (*(const unsigned long *)(addr))

◆ pgm_read_dword_far

#define pgm_read_dword_far (   addr)    pgm_read_dword(addr)

◆ pgm_read_dword_near

#define pgm_read_dword_near (   addr)    pgm_read_dword(addr)

◆ pgm_read_float

#define pgm_read_float (   addr)    (*(const float *)(addr))

◆ pgm_read_float_far

#define pgm_read_float_far (   addr)    pgm_read_float(addr)

◆ pgm_read_float_near

#define pgm_read_float_near (   addr)    pgm_read_float(addr)

◆ pgm_read_ptr

#define pgm_read_ptr (   addr)    (*(const void **)(addr))

◆ pgm_read_ptr_far

#define pgm_read_ptr_far (   addr)    pgm_read_ptr(addr)

◆ pgm_read_ptr_near

#define pgm_read_ptr_near (   addr)    pgm_read_ptr(addr)

◆ pgm_read_word

#define pgm_read_word (   addr)    (*(const unsigned short *)(addr))

◆ pgm_read_word_far

#define pgm_read_word_far (   addr)    pgm_read_word(addr)

◆ pgm_read_word_near

#define pgm_read_word_near (   addr)    pgm_read_word(addr)

◆ PROGMEM

const GFXfont TomThumb PROGMEM
Valeur :
= {
(uint8_t *)FreeMono12pt7bBitmaps,
(GFXglyph *)FreeMono12pt7bGlyphs,
0x20, 0x7E, 24 }
Font data stored PER GLYPH.
Definition: gfxfont.h:11

◆ PSTR

#define PSTR (   str)    (str)

◆ snprintf_P

#define snprintf_P (   s,
  f,
  ... 
)    snprintf((s), (f), __VA_ARGS__)

◆ sprintf_P

#define sprintf_P (   s,
  f,
  ... 
)    sprintf((s), (f), __VA_ARGS__)

◆ strcasecmp_P

#define strcasecmp_P (   s1,
  s2 
)    strcasecmp((s1), (s2))

◆ strcasecmp_PF

#define strcasecmp_PF (   s1,
  s2 
)    strcasecmp((s1), (s2))

◆ strcasestr_P

#define strcasestr_P (   haystack,
  needle 
)    strcasestr((haystack), (needle))

◆ strcat_P

#define strcat_P (   dest,
  src 
)    strcat((dest), (src))

◆ strcat_PF

#define strcat_PF (   dest,
  src 
)    strcat((dest), (src))

◆ strchr_P

#define strchr_P (   s,
 
)    strchr((s), (c))

◆ strchrnul_P

#define strchrnul_P (   s,
 
)    strchrnul((s), (c))

◆ strcmp_P

#define strcmp_P (   a,
 
)    strcmp((a), (b))

◆ strcmp_PF

#define strcmp_PF (   s1,
  s2 
)    strcmp((s1), (s2))

◆ strcpy_P

#define strcpy_P (   dest,
  src 
)    strcpy((dest), (src))

◆ strcpy_PF

#define strcpy_PF (   dest,
  src 
)    strcpy((dest), (src))

◆ strcspn_P

#define strcspn_P (   s,
  accept 
)    strcspn((s), (accept))

◆ strlcat_P

#define strlcat_P (   s1,
  s2,
 
)    strlcat((s1), (s2), (n))

◆ strlcat_PF

#define strlcat_PF (   dest,
  src,
  len 
)    strlcat((dest), (src), (len))

◆ strlcpy_P

#define strlcpy_P (   s1,
  s2,
 
)    strlcpy((s1), (s2), (n))

◆ strlcpy_PF

#define strlcpy_PF (   dest,
  src,
 
)    strlcpy((dest), (src), (n))

◆ strlen_P

#define strlen_P (   a)    strlen((a))

◆ strlen_PF

#define strlen_PF (   a)    strlen((a))

◆ strncasecmp_P

#define strncasecmp_P (   s1,
  s2,
 
)    strncasecmp((s1), (s2), (n))

◆ strncasecmp_PF

#define strncasecmp_PF (   s1,
  s2,
 
)    strncasecmp((s1), (s2), (n))

◆ strncat_P

#define strncat_P (   s1,
  s2,
 
)    strncat((s1), (s2), (n))

◆ strncat_PF

#define strncat_PF (   dest,
  src,
  len 
)    strncat((dest), (src), (len))

◆ strncmp_P

#define strncmp_P (   s1,
  s2,
 
)    strncmp((s1), (s2), (n))

◆ strncmp_PF

#define strncmp_PF (   s1,
  s2,
 
)    strncmp((s1), (s2), (n))

◆ strncpy_P

#define strncpy_P (   s1,
  s2,
 
)    strncpy((s1), (s2), (n))

◆ strncpy_PF

#define strncpy_PF (   dest,
  src,
  len 
)    strncpy((dest), (src), (len))

◆ strnlen_P

#define strnlen_P (   s,
 
)    strnlen((s), (n))

◆ strnlen_PF

#define strnlen_PF (   src,
  len 
)    strnlen((src), (len))

◆ strpbrk_P

#define strpbrk_P (   s,
  accept 
)    strpbrk((s), (accept))

◆ strrchr_P

#define strrchr_P (   s,
 
)    strrchr((s), (c))

◆ strsep_P

#define strsep_P (   sp,
  delim 
)    strsep((sp), (delim))

◆ strspn_P

#define strspn_P (   s,
  accept 
)    strspn((s), (accept))

◆ strstr_P

#define strstr_P (   a,
 
)    strstr((a), (b))

◆ strstr_PF

#define strstr_PF (   s1,
  s2 
)    strstr((s1), (s2))

◆ strtok_P

#define strtok_P (   s,
  delim 
)    strtok((s), (delim))

◆ strtok_rP

#define strtok_rP (   s,
  delim,
  last 
)    strtok((s), (delim), (last))

Documentation des définitions de type

◆ int_farptr_t

typedef const void* int_farptr_t

◆ prog_char

typedef char prog_char

◆ prog_int16_t

typedef int16_t prog_int16_t

◆ prog_int32_t

typedef int32_t prog_int32_t

◆ prog_int64_t

typedef int64_t prog_int64_t

◆ prog_int8_t

typedef int8_t prog_int8_t

◆ prog_uchar

typedef unsigned char prog_uchar

◆ prog_uint16_t

typedef uint16_t prog_uint16_t

◆ prog_uint32_t

typedef uint32_t prog_uint32_t

◆ prog_uint64_t

typedef uint64_t prog_uint64_t

◆ prog_uint8_t

typedef uint8_t prog_uint8_t

◆ prog_void

typedef void prog_void

◆ uint_farptr_t

typedef const void* uint_farptr_t