Classes | Defines | Typedefs | Functions | Variables
basics.h File Reference
#include <delays.h>
Include dependency graph for basics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  int64
union  union16
union  union32
union  union64

Defines

#define __wparam
#define abs(x)   ((x) > 0 ? (x) : -(x))
#define abslimit(val, lim)
#define CARRY_BIT   0
#define delay1mtcy(x)   { int8u d; for (d=0;d<100; d++) Delay10KTCYx(d); }
#define int16s   signed short
#define int16u   unsigned short
#define int24s   signed short long
#define int24u   unsigned short long
#define int32s   signed long
#define int32u   unsigned long
#define int8s   signed char
#define int8u   unsigned char
#define msg_copy(dest, src)   dest=src
#define rshift_sgn(val, shift)   (((val) > 0) ? ((val) >> (shift)) : -((-(val))>>(shift)))
#define shift_right_signed_16(x)
#define shift_right_signed_32(x)

Typedefs

typedef struct int64 int64u
typedef union union16 union16_t
typedef union union32 union32_t
typedef union union64 union64_t

Functions

void ClrWdt_func (void)
 Clear Watchdog Timer.
void Reset_func (void)
 Use this instead of Reset to keep optimization.
void ShiftLeft64 (union union64 *p)

Variables

const int8u basic_lshift []

Define Documentation

#define __wparam

Definition at line 25 of file basics.h.

#define abs (   x)    ((x) > 0 ? (x) : -(x))

Definition at line 124 of file basics.h.

#define abslimit (   val,
  lim 
)
Value:
{                                               \
                                    if      ((val) >  (lim))  (val) =  (lim);   \
                                    else if ((val) < -(lim))  (val) = -(lim);   \
                            }

Definition at line 126 of file basics.h.

#define CARRY_BIT   0

Definition at line 214 of file basics.h.

#define delay1mtcy (   x)    { int8u d; for (d=0;d<100; d++) Delay10KTCYx(d); }

Definition at line 213 of file basics.h.

#define int16s   signed short

Definition at line 48 of file basics.h.

#define int16u   unsigned short

Definition at line 47 of file basics.h.

#define int24s   signed short long

Definition at line 51 of file basics.h.

#define int24u   unsigned short long

Definition at line 50 of file basics.h.

#define int32s   signed long

Definition at line 54 of file basics.h.

#define int32u   unsigned long

Definition at line 53 of file basics.h.

#define int8s   signed char

Definition at line 45 of file basics.h.

#define int8u   unsigned char

Definition at line 44 of file basics.h.

#define msg_copy (   dest,
  src 
)    dest=src

Definition at line 190 of file basics.h.

#define rshift_sgn (   val,
  shift 
)    (((val) > 0) ? ((val) >> (shift)) : -((-(val))>>(shift)))

Definition at line 132 of file basics.h.

#define shift_right_signed_16 (   x)
Value:
x >>= 1;                \
                                        _asm                    \
                                            btfsc x+1, 6, 1     \
                                            bsf   x+1, 7, 1     \
                                        _endasm

Definition at line 106 of file basics.h.

#define shift_right_signed_32 (   x)
Value:
x >>= 1;                \
                                        _asm                    \
                                            btfsc x+3, 6, 1     \
                                            bsf   x+3, 7, 1     \
                                        _endasm

Definition at line 96 of file basics.h.


Typedef Documentation

typedef struct int64 int64u
typedef union union16 union16_t
typedef union union32 union32_t
typedef union union64 union64_t

Function Documentation

void ClrWdt_func ( void  )

Clear Watchdog Timer.

void Reset_func ( void  )

Use this instead of Reset to keep optimization.

void ShiftLeft64 ( union union64 p)

Variable Documentation



sr_external_dependencies
Author(s): Ugo Cupcic/ ugo@shadowrobot.com, software@shadowrobot.com
autogenerated on Thu Jan 2 2014 12:01:42