DMCP_SDK API

This is where developers can exchange ideas and ask questions relevant to the DM42 firmware.

Please note that Swiss Micros staff are unable to provide answers here as a general rule. This is intended as a community-driven forum.
Post Reply
User avatar
Vitasam
Posts: 200
Joined: Thu Jun 01, 2017 9:51 am
Location: Finland
Contact:

DMCP_SDK API

Post by Vitasam » Fri Jun 15, 2018 4:52 pm

Hello,

is dmcp.h an official API of DMCP_SDK? If so it will be really good to have something more comprehensive (in formats of header file comments or Doxygen generated).

Looking in to HelloWorld code:

Code: Select all

  lcd_clear_buf();
  lcd_writeClr(t24);
  lcd_putsR(t24, "TEST PROGRAM");
  lcd_putsAt(t24, 4, "Hello World!");
What is t24?

Code: Select all

#define t24             (sdb.pds_t24)
What does lcd_clear_buf() do?

Code: Select all

// Drawing Prototypes
void lcd_clear_buf();
What does lcd_writeClr() function (a pointer in to the proprietary binary library) do?

Code: Select all

#define lcd_writeClr (*(typeof(lcd_writeClr)*)(LIBRARY_FN_BASE+100))
Why some of "API" functions are in fact macros?

Code: Select all

#define lcd_putsAt(ds, ln, str)   do { lcd_setLine(ds, ln); lcd_puts(ds,str); } while(0)
What user should do in order to write string in to position of row=5, column=8 of LCD?
Elektronika MK-61, Elektronika MK-52, HP15c LE, DM42 SN#16 FW 3.9.1

Thomas_ER
Posts: 48
Joined: Mon Jul 24, 2017 1:19 pm
Location: Germany

Re: DMCP_SDK API

Post by Thomas_ER » Mon Jun 25, 2018 10:16 am

bump
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]

Post Reply