Rename dump978 stuff to godump978.

pull/35/merge
root 2015-09-03 13:17:15 -04:00
rodzic 76a6e4c3c5
commit 6121e4871c
3 zmienionych plików z 11 dodań i 11 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
// Distributable under the terms of The New BSD License
// that can be found in the LICENSE file.
// Package dump978 wraps libdump978, a 978MHz UAT demodulator.
// Package godump978 wraps libdump978, a 978MHz UAT demodulator.
//
// Build example
//
@ -16,7 +16,7 @@
// uat_read executable:
// $ go build uat_read.go
package dump978
package godump978
/*
#cgo linux LDFLAGS: -L. -ldump978
@ -26,7 +26,7 @@ package dump978
#include <stdlib.h>
#include <stdint.h>
#include "dump978/dump978.h"
#include "../dump978/dump978.h"
extern void dump978Cb(char updown, uint8_t *data, int len);
static inline CallBack GetGoCb() {

Wyświetl plik

@ -2,9 +2,9 @@
// Distributable under the terms of The New BSD License
// that can be found in the LICENSE file.
// Package dump978 wraps libdump978, a 978MHz UAT demodulator.
// Package godump978 wraps libdump978, a 978MHz UAT demodulator.
package dump978
package godump978
import (
"fmt"
@ -14,7 +14,7 @@ import (
/*
#include <stdint.h>
#include "dump978/dump978.h"
#include "../dump978/dump978.h"
*/
import "C"

Wyświetl plik

@ -27,8 +27,8 @@ func sigAbort(dev *rtl.Context) {
func printUAT() {
for {
uat := <-dump978.OutChan
log.Printf("dump978: %s\n", string(uat))
uat := <-godump978.OutChan
log.Printf("godump978: %s\n", string(uat))
fmt.Printf("%s;\n", uat)
}
@ -194,9 +194,9 @@ func main() {
*/
//---------- Get/Set misc. streaming ----------
dump978.Dump978Init()
godump978.Dump978Init()
go printUAT()
go dump978.ProcessDataFromChannel()
go godump978.ProcessDataFromChannel()
if err = dev.ResetBuffer(); err == nil {
log.Printf("\tResetBuffer Successful\n")
@ -212,7 +212,7 @@ func main() {
} else {
log.Printf("\tReadSync %d\n", nRead)
// buf := buffer[:nRead]
// dump978.InChan <- buf
// godump978.InChan <- buf
}
}
}