Define the generic API of a display device.  
More...
Define the generic API of a display device. 
- Warning
 - This feature is experimental!
 This API is experimental and in an early state - expect changes! 
- Author
 - Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr 
 
 | 
| 
disp_dev_reg_t *  | disp_dev_reg | 
|   | Export the display device registry as global variable. 
  | 
|   | 
◆ BACKLIGHT_OFF
◆ BACKLIGHT_ON
◆ disp_dev_t
Forward declaration for display device struct. 
Definition at line 42 of file disp_dev.h.
 
 
◆ disp_dev_backlight_off()
  
  
      
        
          | static void disp_dev_backlight_off  | 
          ( | 
          void |            | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Disable the backlight pin. 
Definition at line 199 of file disp_dev.h.
 
 
◆ disp_dev_backlight_on()
  
  
      
        
          | static void disp_dev_backlight_on  | 
          ( | 
          void |            | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Enable the backlight pin. 
Definition at line 191 of file disp_dev.h.
 
 
◆ disp_dev_color_depth()
      
        
          | uint8_t disp_dev_color_depth  | 
          ( | 
          const disp_dev_t * |           dev | ) | 
           | 
        
      
 
Get the color depth of the display device. 
- Returns
 - The color depth 
 
 
 
◆ disp_dev_height()
      
        
          | uint16_t disp_dev_height  | 
          ( | 
          const disp_dev_t * |           dev | ) | 
           | 
        
      
 
Get the height of the display device. 
- Parameters
 - 
  
    | [in] | dev | Pointer to the display device | 
  
   
- Returns
 - Height in pixels 
 
 
 
◆ disp_dev_map()
Map an area to display on the device. 
- Parameters
 - 
  
    | [in] | dev | Pointer to the display device  | 
    | [in] | area | Coordinates of display area  | 
    | [in] | color | Array of color to map to the display  | 
  
   
 
 
◆ disp_dev_reg_add()
Add pointer to a display device item to the list of display items. 
- Parameters
 - 
  
    | [in] | dev | Pointer to the display device | 
  
   
- Returns
 - 0 on success 
 
- 
-ENODEV on invalid entry 
 
 
 
◆ disp_dev_reg_find_screen()
Find the display device that is attached to a given screen. 
- Parameters
 - 
  
    | [in] | screen_id | Identifier (number) of the screen | 
  
   
- Returns
 - pointer to the display device in the registry 
 
- 
NULL if there's no match 
 
 
 
◆ disp_dev_set_invert()
      
        
          | void disp_dev_set_invert  | 
          ( | 
          const disp_dev_t * |           dev,  | 
        
        
           | 
           | 
          bool |           invert ) | 
        
      
 
Invert the display device colors. 
- Parameters
 - 
  
    | [in] | dev | Pointer to the display device  | 
    | [in] | invert | Invert mode (true if invert, false otherwise)  | 
  
   
 
 
◆ disp_dev_width()
Get the width of the display device. 
- Parameters
 - 
  
    | [in] | dev | Pointer to the display device | 
  
   
- Returns
 - Width in pixels