Ciro Edgardo Romero
/
FoodDeposit
Sistema de supervision y alarma para deposito de comida de animales
modules/display/display.h@0:5e7248732177, 2021-05-14 (annotated)
- Committer:
- ciror00
- Date:
- Fri May 14 17:27:28 2021 +0000
- Revision:
- 0:5e7248732177
Trabajo final de la materia Introduccion a los Sistemas Embebidos
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ciror00 | 0:5e7248732177 | 1 | //=====[#include guards - begin]=============================================== |
ciror00 | 0:5e7248732177 | 2 | |
ciror00 | 0:5e7248732177 | 3 | #ifndef _DISPLAY_H_ |
ciror00 | 0:5e7248732177 | 4 | #define _DISPLAY_H_ |
ciror00 | 0:5e7248732177 | 5 | |
ciror00 | 0:5e7248732177 | 6 | //=====[Libraries]============================================================= |
ciror00 | 0:5e7248732177 | 7 | |
ciror00 | 0:5e7248732177 | 8 | #include "mbed.h" |
ciror00 | 0:5e7248732177 | 9 | |
ciror00 | 0:5e7248732177 | 10 | //=====[Declaration of public defines]======================================= |
ciror00 | 0:5e7248732177 | 11 | |
ciror00 | 0:5e7248732177 | 12 | //=====[Declaration of public data types]====================================== |
ciror00 | 0:5e7248732177 | 13 | |
ciror00 | 0:5e7248732177 | 14 | typedef enum { |
ciror00 | 0:5e7248732177 | 15 | DISPLAY_CONNECTION_GPIO_4BITS, |
ciror00 | 0:5e7248732177 | 16 | DISPLAY_CONNECTION_GPIO_8BITS, |
ciror00 | 0:5e7248732177 | 17 | DISPLAY_CONNECTION_I2C_PCF8574_IO_EXPANDER, |
ciror00 | 0:5e7248732177 | 18 | } displayConnection_t; |
ciror00 | 0:5e7248732177 | 19 | |
ciror00 | 0:5e7248732177 | 20 | typedef struct { |
ciror00 | 0:5e7248732177 | 21 | displayConnection_t connection; |
ciror00 | 0:5e7248732177 | 22 | } display_t; |
ciror00 | 0:5e7248732177 | 23 | |
ciror00 | 0:5e7248732177 | 24 | //=====[Declarations (prototypes) of public functions]========================= |
ciror00 | 0:5e7248732177 | 25 | |
ciror00 | 0:5e7248732177 | 26 | void displayInit( displayConnection_t connection ); |
ciror00 | 0:5e7248732177 | 27 | |
ciror00 | 0:5e7248732177 | 28 | void displayCharPositionWrite( uint8_t charPositionX, uint8_t charPositionY ); |
ciror00 | 0:5e7248732177 | 29 | |
ciror00 | 0:5e7248732177 | 30 | void displayStringWrite( char const * str ); |
ciror00 | 0:5e7248732177 | 31 | |
ciror00 | 0:5e7248732177 | 32 | //=====[#include guards - end]================================================= |
ciror00 | 0:5e7248732177 | 33 | |
ciror00 | 0:5e7248732177 | 34 | #endif // _DISPLAY_H_ |