/* Returns a u16 from buffer. 
As per the offset given this function returns u16 from buffer. */
int32_t FSGetWord(uint8_t *buffer, int32_t iOffsetInUint8)
/* Returns a u16 from buffer. 
As per the offset given this function returns u16 from buffer. */
int32_t FSGetWord(uint8_t *buffer, int32_t iOffsetInUint8)
{
    int32_t temp;
    temp =
        (((uint32_t) buffer[iOffsetInUint8]) |
         ((((uint32_t) buffer[iOffsetInUint8 + 1]) & 0xff) << 8));
    return temp;
}