5 #include "../hubolib.h"
21 const char*
g_pCode =
"CBCDADABCDABCBCDADADABCDABCBCBCBCBCE";
26 CCode (
unsigned short time,
unsigned char signal)
47 int main(
int argc,
char *argv[])
51 printf (
"GPIO not properly initialized. Are you running the program as sudoer?\n");
56 unsigned short transmit_pin = 17;
65 for (
int i=0; i<60; i++)
97 printf (
"Error - unknown code\n");
112 pthread_t threadHandle = pthread_self();
115 ret = pthread_getschedparam (threadHandle, &policy, ¶m);
120 param.sched_priority = sched_get_priority_max(policy);
121 ret = pthread_setschedparam(threadHandle, policy, ¶m);
void Delay_MicroSeconds(unsigned long delay_micros)
delays the execution of the calling thread for the given number of micro seconds. ...
void SendDatagram(unsigned short pin)
bool IsGPIOInitialized()
Returns the status of the initialisation of the GPIO part of the library.
void FunctionSelectPin(unsigned char pin, FunctionSelectType mode)
Use FunctionSelect() to configure the mode of a BCM2835 pin.
int main(int argc, char *argv[])
void WritePin(unsigned char pin, unsigned char value)
Sets or clears a pin configured to be an output.
void BoostThreadPriority()
CCode(unsigned short time, unsigned char signal)