Added function to read capi word.

This commit is contained in:
MelwareDE 2005-08-12 18:29:29 +00:00
parent 6ae79a6c7a
commit 2ba1e78c1a
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,13 @@ static inline void write_capi_word(void *m, unsigned short val)
((unsigned char *)m)[0] = val & 0xff;
((unsigned char *)m)[1] = (val >> 8) & 0xff;
}
static inline unsigned short read_capi_word(void *m)
{
unsigned short val;
val = ((unsigned char *)m)[0] | (((unsigned char *)m)[1] << 8);
return (val);
}
/*
* definitions for compatibility with older versions of ast*