ctypes typecasting in perl

Yitzchak Scott-Thoennes sthoenna at gmail.com
Mon Sep 9 17:23:23 BST 2013

On Mon, Sep 9, 2013 at 8:55 AM, Shantanu Bhadoria <shantanu at cpan.org> wrote:
> I am trying to read registers off a chip which store data in
> int16_t format but since the data is in simple binary code, essentially
> when I read the register I get a simple unsigned int value from it.

Abigail's pack/unpack suggestion will convert it after the fact, but I
am wondering what you do to "read[ing] the register" to get an
unsigned int in the first place.

More information about the london.pm mailing list