C API for BALTECH SDK
disp.h
Go to the documentation of this file.
1 
11 #ifndef __BRP_BALTECH_API_CMDS_DISP_H__
12 #define __BRP_BALTECH_API_CMDS_DISP_H__
13 #include "../typedefs.h"
18 #define BRP_Disp_DispPageNotFound BRP_ERR_STATUS(0x4100, 0x01)
19 
23 #define BRP_Disp_DispUnexpectedEop BRP_ERR_STATUS(0x4100, 0x02)
24 
28 #define BRP_Disp_DispOutOfMem BRP_ERR_STATUS(0x4100, 0x03)
29 
33 #define BRP_Disp_DispFrameNotFound BRP_ERR_STATUS(0x4100, 0x04)
34 
38 #define BRP_Disp_DispUnknownCommand BRP_ERR_STATUS(0x4100, 0x05)
39 
43 #define BRP_Disp_DispStringTooLong BRP_ERR_STATUS(0x4100, 0x06)
44 
48 #define BRP_Disp_DispInvalidFont BRP_ERR_STATUS(0x4100, 0x07)
49 
56 brp_errcode brp_Disp_Enable(brp_protocol protocol, bool Enable);
64 brp_errcode brp_Disp_SetContrast(brp_protocol protocol, unsigned Contrast);
72 brp_errcode brp_Disp_EnableBacklight(brp_protocol protocol, bool EnableLight);
80 brp_errcode brp_Disp_Clear(brp_protocol protocol, bool DelPermanentDefines);
89 brp_errcode brp_Disp_Load(brp_protocol protocol, brp_buf PageDesc, size_t PageDesc_len);
98 brp_errcode brp_Disp_Extend(brp_protocol protocol, brp_buf PageDesc, size_t PageDesc_len);
99 #endif
100 
brp_errcode brp_Disp_SetContrast(brp_protocol protocol, unsigned Contrast)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
brp_errcode brp_Disp_Enable(brp_protocol protocol, bool Enable)
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Disp_EnableBacklight(brp_protocol protocol, bool EnableLight)
brp_errcode brp_Disp_Clear(brp_protocol protocol, bool DelPermanentDefines)
brp_errcode brp_Disp_Extend(brp_protocol protocol, brp_buf PageDesc, size_t PageDesc_len)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Disp_Load(brp_protocol protocol, brp_buf PageDesc, size_t PageDesc_len)