Classes | Macros | Typedefs | Functions | Variables
basics.h File Reference
#include <delays.h>
Include dependency graph for basics.h:

Go to the source code of this file.

Classes

struct  int64
 
union  union16
 
union  union32
 
union  union64
 

Macros

#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. More...
 
void Reset_func (void)
 Use this instead of Reset to keep optimization. More...
 
void ShiftLeft64 (union union64 *p)
 

Variables

const int8u basic_lshift []
 

Macro Definition Documentation

◆ __wparam

#define __wparam

Definition at line 25 of file basics.h.

◆ abs

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

Definition at line 124 of file basics.h.

◆ abslimit

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

Definition at line 126 of file basics.h.

◆ CARRY_BIT

#define CARRY_BIT   0

Definition at line 214 of file basics.h.

◆ delay1mtcy

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

Definition at line 213 of file basics.h.

◆ int16s

#define int16s   signed short

Definition at line 48 of file basics.h.

◆ int16u

#define int16u   unsigned short

Definition at line 47 of file basics.h.

◆ int24s

#define int24s   signed short long

Definition at line 51 of file basics.h.

◆ int24u

#define int24u   unsigned short long

Definition at line 50 of file basics.h.

◆ int32s

#define int32s   signed long

Definition at line 54 of file basics.h.

◆ int32u

#define int32u   unsigned long

Definition at line 53 of file basics.h.

◆ int8s

#define int8s   signed char

Definition at line 45 of file basics.h.

◆ int8u

#define int8u   unsigned char

Definition at line 44 of file basics.h.

◆ msg_copy

#define msg_copy (   dest,
  src 
)    dest=src

Definition at line 190 of file basics.h.

◆ rshift_sgn

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

Definition at line 132 of file basics.h.

◆ shift_right_signed_16

#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.

◆ shift_right_signed_32

#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

◆ int64u

typedef struct int64 int64u

◆ union16_t

typedef union union16 union16_t

◆ union32_t

typedef union union32 union32_t

◆ union64_t

typedef union union64 union64_t

Function Documentation

◆ ClrWdt_func()

void ClrWdt_func ( void  )

Clear Watchdog Timer.

◆ Reset_func()

void Reset_func ( void  )

Use this instead of Reset to keep optimization.

◆ ShiftLeft64()

void ShiftLeft64 ( union union64 p)

Variable Documentation

◆ basic_lshift

const int8u basic_lshift[]


sr_external_dependencies
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:50:40