> uint8_t is a type as specified by the _t in the naming. u = unsigned
> and int = integer 8 = eight bits. So this declares an unsigned integer
> of 8 bits.

Thanks for the clarification Randall but question remains, how should I
declare a uint8_t in Gambas3 when using the EXTERN command?

The only byte sized datatypes in Gambas3 are Boolean and Byte and Boolean is
clearly not the one to use since it's only TRUE/FALSE but using Byte as
below
give a "Segmentation Fault" when calling the function in libbcm2835.

  ' Declare shared library
  Public Extern bcm2835_gpio_set(pin As Byte) In "libbcm2835"

  ' Call the function
  bcm2835_gpio_set(17)

/CJ



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to