summaryrefslogtreecommitdiff
path: root/map65/libm65/rs_mod.f90
blob: d7244a322d4881227df9c8d117538fa9c09cf71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module rs_mod
  use iso_c_binding
  implicit none
  interface
    subroutine rs_encode_(dgen, sent) bind(C, name="rs_encode_")
      use iso_c_binding
      implicit none
      integer(c_int), intent(in)  :: dgen(12)
      integer(c_int), intent(out) :: sent(63)
    end subroutine rs_encode_   
    
  subroutine rs_decode_(recd0, era0, numera0, decoded, nerr) bind(C, name="rs_decode_")
    use iso_c_binding
    implicit none
    integer(c_int), intent(in)    :: recd0(63)
    integer(c_int), intent(in)    :: era0(*)      ! size = numera0
    integer(c_int), intent(in)    :: numera0
    integer(c_int), intent(out)   :: decoded(12)
    integer(c_int), intent(out)   :: nerr
  end subroutine rs_decode_
end interface

end module rs_mod