plc_get/set_f32() functions now in library.

M

Thread Starter

Mario de Sousa

Juan Carlos Orozco wrote:
(...)
> > > This constants are all float values, in my design ideas I find
> > recurrently
> > > the need to write float values to plc points, therefore I
> > decided to write
> > > two new functions in the gmm.h and gmm.c. The conversion is
> > based on your
> > > typeconv function from the dsp module.
> > >
> > > f32 plc_get_f32(plc_pt_t p)
(...)
> > > int plc_set_f32(plc_pt_t p, f32 val)
(...)
> >
> > Good idea! These functions should probably be inlined. Unfortunately
> > we can't safely add them to the gmm.h file.

I've inserted them in the gmm.c file. We can figure out how to optimise (inline) them later.

Required changes to Juan's (oven) demo have also been made.

This is all the the cvs already.


Mario.


----------------------------------------------------------------------------
Mario J. R. de Sousa
[email protected]
----------------------------------------------------------------------------

The box said it requires Windows 95 or better, so I installed Linux

_______________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
 
Top